]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Create new Chapter 4 Modules and move Multiple text columns section into it
[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 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Subsection
4525
4526 \change_inserted 564990737 1670924924
4527 Polish M.
4528 \begin_inset space \thinspace{}
4529 \end_inset
4530
4531 W.
4532 \begin_inset space \space{}
4533 \end_inset
4534
4535 collection
4536 \change_deleted 564990737 1670924933
4537 Article (mwart), book (mwbk) and report (mwrep)
4538 \begin_inset Argument status
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 The 
4543 \family typewriter
4544 mw
4545 \family default
4546  Classes
4547 \end_layout
4548
4549 \end_inset
4550
4551
4552 \change_unchanged
4553
4554 \end_layout
4555
4556 \begin_layout Standard
4557 by 
4558 \noun on
4559 Tomasz Luczak
4560 \end_layout
4561
4562 \begin_layout Standard
4563 The \SpecialChar LyX
4564  document classes 
4565 \emph on
4566 article (mwart)
4567 \emph default
4568
4569 \emph on
4570 report (mwrep)
4571 \emph default
4572  and 
4573 \emph on
4574 book
4575 \emph default
4576  
4577 \emph on
4578 (mwbk)
4579 \emph default
4580  correspond to the \SpecialChar LaTeX
4581  document classes 
4582 \family typewriter
4583 mwart.cls
4584 \family default
4585
4586 \family typewriter
4587 mwrep.cls
4588 \family default
4589  and 
4590 \family typewriter
4591 mwbk.cls
4592 \family default
4593 , resp.
4594  They are replacements for the standard document classes 
4595 \family typewriter
4596 article.cls
4597 \family default
4598
4599 \family typewriter
4600 report.cls
4601 \family default
4602  and 
4603 \family typewriter
4604 book.cls
4605 \family default
4606 , resp., and fit better to Polish typography conventions in a number of points.
4607  
4608 \end_layout
4609
4610 \begin_layout Standard
4611 Basic differences:
4612 \end_layout
4613
4614 \begin_layout Itemize
4615 Unnumbered titles (with star, e.
4616 \begin_inset space \thinspace{}
4617 \end_inset
4618
4619 g.
4620 \begin_inset space \space{}
4621 \end_inset
4622
4623
4624 \family sans
4625 Section*
4626 \family default
4627 ) are added into table of contents,
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 Additional page styles:
4632 \end_layout
4633
4634 \begin_deeper
4635 \begin_layout Description
4636 uheadings header with separated lines,
4637 \end_layout
4638
4639 \begin_layout Description
4640 myheadings custom header, contents headers via commands: 
4641 \family typewriter
4642
4643 \backslash
4644 markright
4645 \family default
4646  and 
4647 \family typewriter
4648
4649 \backslash
4650 markboth
4651 \family default
4652 ,
4653 \end_layout
4654
4655 \begin_layout Description
4656 myuheadings custom header with separated lines,
4657 \end_layout
4658
4659 \begin_layout Description
4660 outer page number is placed on outer side of page
4661 \end_layout
4662
4663 \end_deeper
4664 \begin_layout Itemize
4665 Options 
4666 \end_layout
4667
4668 \begin_deeper
4669 \begin_layout Description
4670 rmheadings serif titles — default,
4671 \end_layout
4672
4673 \begin_layout Description
4674 sfheadings sansserif titles,
4675 \end_layout
4676
4677 \begin_layout Description
4678 authortitle on title page first placed is author next title — default,
4679 \end_layout
4680
4681 \begin_layout Description
4682 titleauthor on title page first placed is title next author,
4683 \end_layout
4684
4685 \begin_layout Description
4686 withmarginpar reserve place on page for margins.
4687 \end_layout
4688
4689 \end_deeper
4690 \begin_layout Section
4691
4692 \change_inserted 564990737 1670439534
4693 Articles
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \change_inserted 564990737 1670794710
4699 See also the document classes in the Collections (section
4700 \begin_inset space ~
4701 \end_inset
4702
4703
4704 \begin_inset CommandInset ref
4705 LatexCommand ref
4706 reference "sec:Collections"
4707
4708 \end_inset
4709
4710 ).
4711 \end_layout
4712
4713 \begin_layout Subsection
4714
4715 \change_inserted 564990737 1670794716
4716
4717 \lang american
4718 A&A Paper
4719 \end_layout
4720
4721 \begin_layout Standard
4722
4723 \change_inserted 564990737 1670794716
4724
4725 \lang american
4726 Original by 
4727 \noun on
4728 Peter Sütterlin
4729 \noun default
4730 ; updated by the \SpecialChar LyX
4731  Team
4732 \end_layout
4733
4734 \begin_layout Subsubsection
4735
4736 \change_inserted 564990737 1670794716
4737
4738 \lang american
4739 Introduction
4740 \end_layout
4741
4742 \begin_layout Standard
4743
4744 \change_inserted 564990737 1670794716
4745
4746 \lang american
4747 This section describes how \SpecialChar LyX
4748  can be used to write articles for submission
4749  to the scientific journal 
4750 \emph on
4751 Astronomy and Astrophysics
4752 \emph default
4753  (
4754 \begin_inset CommandInset href
4755 LatexCommand href
4756 name "aa-package"
4757 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4758 literal "false"
4759
4760 \end_inset
4761
4762 ) using Version 9.1 of the document class 
4763 \family typewriter
4764 aa.cls
4765 \family default
4766 ; information about it is available at 
4767 \begin_inset Flex URL
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \change_inserted 564990737 1670794716
4773
4774 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \end_inset
4780
4781 .
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \change_inserted 564990737 1670794716
4787
4788 \lang american
4789 A manual comes together with the package and should be consulted before
4790  installing this document class as described in the 
4791 \emph on
4792 Installing New Document Classe
4793 \emph default
4794 s section of the 
4795 \emph on
4796 Customization
4797 \emph default
4798  manual.
4799  
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \change_inserted 564990737 1670794716
4805
4806 \lang american
4807 \begin_inset Note Greyedout
4808 status open
4809
4810 \begin_layout Plain Layout
4811
4812 \change_inserted 564990737 1670794716
4813
4814 \lang american
4815 Please note that the publisher of the journal was changed from Springer
4816  to EDP Sciences starting January 1, 2001.
4817  That change also involved some slight changes to the style files, namely
4818  the removal of the thesaurus command.
4819  If you have an older version installed, please upgrade.
4820  For information about compatibility with the old (version 4) layout, please
4821  refer to the comments in 
4822 \family typewriter
4823 \SpecialChar LyX
4824 Dir/layouts/aapaper.layout
4825 \family default
4826 .
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Subsubsection
4835
4836 \change_inserted 564990737 1670794716
4837
4838 \lang american
4839 Getting started
4840 \end_layout
4841
4842 \begin_layout Standard
4843
4844 \change_inserted 564990737 1670794716
4845
4846 \lang american
4847 It is recommended you start from the template 
4848 \emph on
4849 aa.lyx
4850 \emph default
4851  in the menu 
4852 \family sans
4853 \bar under
4854 F
4855 \bar default
4856 ile\SpecialChar menuseparator
4857 New
4858 \begin_inset space ~
4859 \end_inset
4860
4861 fro
4862 \bar under
4863 m
4864 \bar default
4865
4866 \begin_inset space ~
4867 \end_inset
4868
4869 Template
4870 \family default
4871 .
4872  If you are not using the template, note the following settings:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876
4877 \change_inserted 564990737 1670794716
4878
4879 \lang american
4880 Select 
4881 \family sans
4882 article (A&A)
4883 \family default
4884  in the 
4885 \family sans
4886 \bar under
4887 D
4888 \bar default
4889 ocument\SpecialChar menuseparator
4890
4891 \bar under
4892 S
4893 \bar default
4894 ettings\SpecialChar menuseparator
4895 Document
4896 \begin_inset space ~
4897 \end_inset
4898
4899 Class
4900 \family default
4901  dialog (OK, that one was obvious).
4902 \end_layout
4903
4904 \begin_layout Itemize
4905
4906 \change_inserted 564990737 1670794716
4907
4908 \lang american
4909 Don't change the 
4910 \family sans
4911 Headings
4912 \begin_inset space ~
4913 \end_inset
4914
4915
4916 \bar under
4917 s
4918 \bar default
4919 tyle
4920 \family default
4921  in the 
4922 \family sans
4923 Page
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Layout
4928 \family default
4929  dialog: leave it set to 
4930 \family sans
4931 Default
4932 \family default
4933 .
4934  The whole layout is done by the macros, you shouldn't change anything.
4935 \end_layout
4936
4937 \begin_layout Subsubsection
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \lang american
4942 The header block
4943 \end_layout
4944
4945 \begin_layout Standard
4946
4947 \change_inserted 564990737 1670794716
4948
4949 \lang american
4950 First thing to enter is the header information.
4951  It consists of five entries, of which one is optional.
4952  They are
4953 \end_layout
4954
4955 \begin_layout Itemize
4956
4957 \change_inserted 564990737 1670794716
4958
4959 \family sans
4960 \lang american
4961 Title
4962 \family default
4963 : [required] 
4964 \end_layout
4965
4966 \begin_layout Itemize
4967
4968 \change_inserted 564990737 1670794716
4969
4970 \family sans
4971 \lang american
4972 Subtitle
4973 \family default
4974 : [optional] 
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \family sans
4982 \lang american
4983 Author
4984 \family default
4985 : [required]
4986 \end_layout
4987
4988 \begin_layout Itemize
4989
4990 \change_inserted 564990737 1670794716
4991
4992 \family typewriter
4993 \lang american
4994 Institute
4995 \family default
4996 : [required]
4997 \end_layout
4998
4999 \begin_layout Itemize
5000
5001 \change_inserted 564990737 1670794716
5002
5003 \family sans
5004 \lang american
5005 Date
5006 \family default
5007 : [required].
5008  Suggested format is 
5009 \family typewriter
5010 Received: <date>; Accepted <date> 
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \change_inserted 564990737 1670794716
5016
5017 \lang american
5018 Although the order of the single header entries doesn't matter it is advised
5019  to keep the above sequence, just to get the best optics and meets the layout
5020  of the real document.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1670794716
5026
5027 \lang american
5028 If you want to place footnotes in the header block, e.
5029 \begin_inset space \thinspace{}
5030 \end_inset
5031
5032 g.
5033 \begin_inset space \space{}
5034 \end_inset
5035
5036 to state your present address, just use the standard footnote via the menu
5037  
5038 \family sans
5039 \bar under
5040 I
5041 \bar default
5042 nsert\SpecialChar menuseparator
5043
5044 \bar under
5045 F
5046 \bar default
5047 ootnote.
5048
5049 \family default
5050  \SpecialChar LyX
5051  will automagically use the term 
5052 \family typewriter
5053
5054 \backslash
5055 thanks{}
5056 \family default
5057  in that case.
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5066  commands that
5067  have no counterpart in \SpecialChar LyX
5068 :
5069 \end_layout
5070
5071 \begin_layout Itemize
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \family typewriter
5076 \lang american
5077
5078 \backslash
5079 and
5080 \family default
5081  to separate different names for more than one author and institute, respectivel
5082 y.
5083 \end_layout
5084
5085 \begin_layout Itemize
5086
5087 \change_inserted 564990737 1670794716
5088
5089 \family typewriter
5090 \lang american
5091
5092 \backslash
5093 inst{<nr>}
5094 \family default
5095  to mark corresponding author/institute pairs.
5096  The institutes are numbered sequentially as they appear in the 
5097 \family sans
5098 Institute
5099 \family default
5100  field, so you have to put a marker to each author.
5101 \end_layout
5102
5103 \begin_layout Itemize
5104
5105 \change_inserted 564990737 1670794716
5106
5107 \family typewriter
5108 \lang american
5109
5110 \backslash
5111 email{address}
5112 \family default
5113  to supply an email address for fast contact.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1670794716
5119
5120 \lang american
5121 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5122  code in \SpecialChar LyX
5123 .
5124  See the examples in the template and in the file 
5125 \emph on
5126 aa_sample.lyx
5127 \emph default
5128  in the 
5129 \family sans
5130 Examples
5131 \family default
5132  directory.
5133  
5134 \end_layout
5135
5136 \begin_layout Subsubsection
5137
5138 \change_inserted 564990737 1670794716
5139
5140 \lang american
5141 The abstract
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \change_inserted 564990737 1670794716
5147
5148 \lang american
5149 The abstract should immediately follow the header block and must contain
5150  five tokens: 
5151 \family typewriter
5152
5153 \backslash
5154 abstract{}{}{}{}{}
5155 \family default
5156  
5157 \end_layout
5158
5159 \begin_layout Enumerate
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family typewriter
5164 \lang american
5165 context heading
5166 \family default
5167  (optional) {} leave it empty if necessary 
5168 \end_layout
5169
5170 \begin_layout Enumerate
5171
5172 \change_inserted 564990737 1670794716
5173
5174 \family typewriter
5175 \lang american
5176 aims heading
5177 \family default
5178  (mandatory) {} 
5179 \end_layout
5180
5181 \begin_layout Enumerate
5182
5183 \change_inserted 564990737 1670794716
5184
5185 \family typewriter
5186 \lang american
5187 methods heading
5188 \family default
5189  (mandatory) {} 
5190 \end_layout
5191
5192 \begin_layout Enumerate
5193
5194 \change_inserted 564990737 1670794716
5195
5196 \family typewriter
5197 \lang american
5198 results heading
5199 \family default
5200  (mandatory) {} 
5201 \end_layout
5202
5203 \begin_layout Enumerate
5204
5205 \change_inserted 564990737 1670794716
5206
5207 \family typewriter
5208 \lang american
5209 conclusions heading
5210 \family default
5211  (optional) {} leave it empty if necessary 
5212 \end_layout
5213
5214 \begin_layout Standard
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \lang american
5219 (NB.
5220  This structure not shown in 
5221 \emph on
5222 aa_sample.lyx.
5223 \emph default
5224 )
5225 \end_layout
5226
5227 \begin_layout Subsubsection
5228
5229 \change_inserted 564990737 1670794716
5230
5231 \lang american
5232 Supported environments
5233 \end_layout
5234
5235 \begin_layout Standard
5236
5237 \change_inserted 564990737 1670794716
5238
5239 \lang american
5240 The A&A paper layout supports the following environments for structuring
5241  your text:
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family sans
5249 \lang american
5250 Standard
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family sans
5258 \lang american
5259 Section
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Subsection
5269 \end_layout
5270
5271 \begin_layout Itemize
5272
5273 \change_inserted 564990737 1670794716
5274
5275 \family sans
5276 \lang american
5277 Subsubsection
5278 \end_layout
5279
5280 \begin_layout Itemize
5281
5282 \change_inserted 564990737 1670794716
5283
5284 \family sans
5285 \lang american
5286 Itemize
5287 \end_layout
5288
5289 \begin_layout Itemize
5290
5291 \change_inserted 564990737 1670794716
5292
5293 \family sans
5294 \lang american
5295 Enumerate
5296 \end_layout
5297
5298 \begin_layout Itemize
5299
5300 \change_inserted 564990737 1670794716
5301
5302 \family sans
5303 \lang american
5304 Description
5305 \end_layout
5306
5307 \begin_layout Itemize
5308
5309 \change_inserted 564990737 1670794716
5310
5311 \family sans
5312 \lang american
5313 Caption
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \change_inserted 564990737 1670794716
5319
5320 \family sans
5321 \lang american
5322 Abstract
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \family sans
5330 \lang american
5331 Acknowledgment
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family sans
5339 \lang american
5340 Bibliography
5341 \end_layout
5342
5343 \begin_layout Itemize
5344
5345 \change_inserted 564990737 1670794716
5346
5347 \family sans
5348 \lang american
5349 \SpecialChar LaTeX
5350
5351 \end_layout
5352
5353 \begin_layout Subsubsection
5354
5355 \change_inserted 564990737 1670794716
5356
5357 \lang american
5358 Commands not supported by \SpecialChar LyX
5359
5360 \end_layout
5361
5362 \begin_layout Standard
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \lang american
5367 Some commands are not yet supported by the 
5368 \family sans
5369 paper (A&A)
5370 \family default
5371  layout for \SpecialChar LyX
5372 .
5373  Some have already been mentioned.
5374  For the sake of completeness, they are listed all together here:
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_inserted 564990737 1670794716
5380
5381 \family typewriter
5382 \lang american
5383
5384 \backslash
5385 and
5386 \end_layout
5387
5388 \begin_layout Itemize
5389
5390 \change_inserted 564990737 1670794716
5391
5392 \family typewriter
5393 \lang american
5394
5395 \backslash
5396 email
5397 \end_layout
5398
5399 \begin_layout Itemize
5400
5401 \change_inserted 564990737 1670794716
5402
5403 \family typewriter
5404 \lang american
5405
5406 \backslash
5407 inst{}
5408 \end_layout
5409
5410 \begin_layout Itemize
5411
5412 \change_inserted 564990737 1670794716
5413
5414 \family typewriter
5415 \lang american
5416
5417 \backslash
5418 keywords{}
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \change_inserted 564990737 1670794716
5424
5425 \family typewriter
5426 \lang american
5427
5428 \backslash
5429 object{}
5430 \end_layout
5431
5432 \begin_layout Standard
5433
5434 \change_inserted 564990737 1670794716
5435
5436 \lang american
5437 If you want to use any of these commands, you have to enter them yourself.
5438  
5439 \family typewriter
5440 Do not forget to use
5441 \family sans
5442  
5443 \bar under
5444 I
5445 \bar default
5446 nsert\SpecialChar menuseparator
5447 \SpecialChar TeX
5448
5449 \begin_inset space ~
5450 \end_inset
5451
5452 Code
5453 \family default
5454 \series bold
5455 !
5456 \end_layout
5457
5458 \begin_layout Subsubsection
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 Figure and Table Floats
5464 \end_layout
5465
5466 \begin_layout Standard
5467
5468 \change_inserted 564990737 1670794716
5469
5470 \lang american
5471 \SpecialChar LyX
5472  provides support for the necessary float environments 
5473 \family sans
5474 figure, figure*, table
5475 \family default
5476  and 
5477 \family sans
5478 table*
5479 \family default
5480 , therefore we won't tell much about it here.
5481  Refer to the 
5482 \emph on
5483 User's
5484 \begin_inset space ~
5485 \end_inset
5486
5487 Guide
5488 \emph default
5489 .
5490  Just remember that tables should be left-aligned.
5491  For that, select the table and change the alignment in 
5492 \family sans
5493 \bar under
5494 E
5495 \bar default
5496 dit\SpecialChar menuseparator
5497
5498 \bar under
5499 P
5500 \bar default
5501 aragraph
5502 \begin_inset space ~
5503 \end_inset
5504
5505 Settings.
5506 \end_layout
5507
5508 \begin_layout Standard
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \lang american
5513 There is only one special thing: the figures with a caption beside the figure.
5514  To create such a figure, you have to do the following:
5515 \end_layout
5516
5517 \begin_layout Enumerate
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \lang american
5522 Create a wide figure float: 
5523 \family sans
5524 \bar under
5525 I
5526 \bar default
5527 nsert\SpecialChar menuseparator
5528 Flo
5529 \bar under
5530 a
5531 \bar default
5532 t\SpecialChar menuseparator
5533 Figure
5534 \family default
5535 , then, from within the float, use the menu 
5536 \family sans
5537 \bar under
5538 E
5539 \bar default
5540 dit\SpecialChar menuseparator
5541 Flo
5542 \bar under
5543 a
5544 \bar default
5545 t
5546 \begin_inset space ~
5547 \end_inset
5548
5549 Settings
5550 \family default
5551  and check 
5552 \family sans
5553 \bar under
5554 S
5555 \bar default
5556 pan
5557 \begin_inset space ~
5558 \end_inset
5559
5560 columns
5561 \family default
5562  in the 
5563 \family sans
5564 float
5565 \family default
5566  dialog.
5567 \end_layout
5568
5569 \begin_layout Enumerate
5570
5571 \change_inserted 564990737 1670794716
5572
5573 \lang american
5574 Enter your caption text.
5575 \end_layout
5576
5577 \begin_layout Enumerate
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \lang american
5582 Press 
5583 \family sans
5584 Return
5585 \family default
5586  to move the cursor above the caption.
5587 \end_layout
5588
5589 \begin_layout Enumerate
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \lang american
5594 Insert your figure
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598
5599 \change_inserted 564990737 1670794716
5600
5601 \lang american
5602 Position the cursor after the figure and insert a horizontal fill by using
5603  the menu: 
5604 \family sans
5605 \bar under
5606 I
5607 \bar default
5608 nsert\SpecialChar menuseparator
5609 F
5610 \bar under
5611 o
5612 \bar default
5613 rmatting\SpecialChar menuseparator
5614 H
5615 \bar under
5616 o
5617 \bar default
5618 rizontal
5619 \begin_inset space ~
5620 \end_inset
5621
5622 Space
5623 \family default
5624  to open the 
5625 \family sans
5626 space
5627 \family default
5628  dialog and select the 
5629 \family sans
5630 Horizontal fill
5631 \family default
5632  option from the 
5633 \family sans
5634 \bar under
5635 S
5636 \bar default
5637 pacing
5638 \family default
5639  pull-down menu.
5640 \end_layout
5641
5642 \begin_layout Enumerate
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \lang american
5647 Switch to \SpecialChar LaTeX
5648  mode: 
5649 \family sans
5650 M-c
5651 \begin_inset space ~
5652 \end_inset
5653
5654 t
5655 \family default
5656 .
5657 \end_layout
5658
5659 \begin_layout Enumerate
5660
5661 \change_inserted 564990737 1670794716
5662
5663 \lang american
5664 Enter 
5665 \family typewriter
5666
5667 \backslash
5668 parbox[b]{55mm}{
5669 \family default
5670  
5671 \emph on
5672 Do not close the brace!
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \lang american
5680 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5681  mode and insert
5682  the closing brace: 
5683 \family sans
5684 M-c
5685 \begin_inset space ~
5686 \end_inset
5687
5688 t
5689 \family default
5690  
5691 \family typewriter
5692 }
5693 \family default
5694 .
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 Also, refer to the figures in the file 
5703 \emph on
5704 aa_sample.lyx
5705 \emph default
5706  in the 
5707 \family sans
5708 Examples
5709 \family default
5710  directory.
5711 \end_layout
5712
5713 \begin_layout Subsubsection
5714
5715 \change_inserted 564990737 1670794716
5716
5717 \lang american
5718 Referee layout
5719 \end_layout
5720
5721 \begin_layout Standard
5722
5723 \change_inserted 564990737 1670794716
5724
5725 \lang american
5726 For submission, the paper has to be formatted in a special double-spacing
5727  layout.
5728  For this purpose, you have to add the option 
5729 \family typewriter
5730 referee
5731 \family default
5732  to the 
5733 \family sans
5734 Cus
5735 \bar under
5736 t
5737 \bar default
5738 om Class
5739 \begin_inset space ~
5740 \end_inset
5741
5742 options
5743 \family default
5744  in the 
5745 \family sans
5746 \bar under
5747 D
5748 \bar default
5749 ocument\SpecialChar menuseparator
5750
5751 \bar under
5752 S
5753 \bar default
5754 ettings\SpecialChar menuseparator
5755 Document
5756 \begin_inset space ~
5757 \end_inset
5758
5759 Class
5760 \family default
5761  dialog.
5762  
5763 \end_layout
5764
5765 \begin_layout Subsubsection
5766
5767 \change_inserted 564990737 1670794716
5768
5769 \lang american
5770 The example paper
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 The example paper 
5779 \emph on
5780 aa_sample.lyx
5781 \emph default
5782  was written with \SpecialChar LyX
5783 .
5784  It is the example paper from the original macro package, 
5785 \family typewriter
5786 aa.dem
5787 \family default
5788  in the 
5789 \begin_inset CommandInset href
5790 LatexCommand href
5791 name "aa-package"
5792 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5793 literal "false"
5794
5795 \end_inset
5796
5797 , but translated to \SpecialChar LyX
5798  using the older unstructured abstract type.
5799  Use it for inspiration, and compare the \SpecialChar LaTeX
5800  code in 
5801 \family typewriter
5802 aa.dem
5803 \family default
5804  with the \SpecialChar LyX
5805  way of writing.
5806 \end_layout
5807
5808 \begin_layout Subsection
5809 AAS\SpecialChar TeX
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 by 
5815 \noun on
5816 Mike Ressler
5817 \end_layout
5818
5819 \begin_layout Subsubsection
5820 Introduction
5821 \end_layout
5822
5823 \begin_layout Standard
5824 AAS\SpecialChar TeX
5825  is a set of macros produced by the American Astronomical Society to
5826  facilitate electronic manuscript submission to the three journals they
5827  publish: the Astrophysical Journal (including the Letters and Supplement),
5828  the Astronomical Journal, and the Publications of the Astronomical Society
5829  of the Pacific.
5830  \SpecialChar LyX
5831  has proven to be an excellent tool for generating these documents, especially
5832  given its equation, citation, and figure handling capabilities.
5833  \SpecialChar LyX
5834  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5835  is the version described here, or higher.
5836  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5837 2.09 and are fundamentally
5838  incompatible with \SpecialChar LyX
5839 .
5840  The AAS\SpecialChar TeX
5841  package may be downloaded from the AAS\SpecialChar TeX
5842  Web site
5843 \end_layout
5844
5845 \begin_layout Standard
5846 \begin_inset VSpace medskip
5847 \end_inset
5848
5849
5850 \end_layout
5851
5852 \begin_layout Standard
5853 \align center
5854 \begin_inset Flex URL
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858
5859 https://aas.org/aastex/aastex-downloads
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \end_layout
5866
5867 \begin_layout Standard
5868 \begin_inset VSpace medskip
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Standard
5875 A complete user guide is contained in that package and you should familiarize
5876  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5877 .
5878  \SpecialChar LyX
5879  will not reduce the need to figure out all the AAS\SpecialChar TeX
5880  commands, it will only
5881  reduce the drudgery of typing everything in.
5882  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5883  document conforms
5884  completely to the requirements of the journal to which you are submitting
5885  your paper.
5886 \end_layout
5887
5888 \begin_layout Subsubsection
5889 Starting a New Paper
5890 \end_layout
5891
5892 \begin_layout Standard
5893 I strongly suggest that you start with the AAS\SpecialChar TeX
5894  template file.
5895  Click on 
5896 \family sans
5897 File\SpecialChar menuseparator
5898 New from
5899 \family default
5900  
5901 \family sans
5902 Template
5903 \family default
5904 , enter the new file name, then choose the 
5905 \family typewriter
5906 aastex6.lyx
5907 \family default
5908  template.
5909  This will show the most common fields found in a manuscript.
5910  Simply overwrite the existing text (including the brackets, 
5911 \family typewriter
5912 <>
5913 \family default
5914 ) with the correct information.
5915  Many of the AAS\SpecialChar TeX
5916  commands and environments can be implemented directly in
5917  \SpecialChar LyX
5918 , but some cannot.
5919  For commands such as these, the \SpecialChar LaTeX
5920  code must be entered directly and marked
5921  as such.
5922  Such commands are referred to as \SpecialChar TeX
5923  code, or Evil Red Text.
5924  I tried to minimize the amount of \SpecialChar TeX
5925  code needed in an AAS\SpecialChar TeX
5926  document.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 Finishing Your Paper
5931 \end_layout
5932
5933 \begin_layout Standard
5934 When the paper is finished to your satisfaction and previews/prints correctly,
5935  there are a few 
5936 \begin_inset Quotes eld
5937 \end_inset
5938
5939 postprocessing
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  actions which need to be done before you submit it to the journals.
5944  
5945 \end_layout
5946
5947 \begin_layout Enumerate
5948 Export your paper as a \SpecialChar LaTeX
5949  file (
5950 \family sans
5951 File\SpecialChar menuseparator
5952 Export\SpecialChar menuseparator
5953 \SpecialChar LaTeX
5954
5955 \family default
5956 ).
5957  
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Edit the resulting 
5962 \family typewriter
5963 .tex
5964 \family default
5965  file with your favorite text editor
5966 \end_layout
5967
5968 \begin_deeper
5969 \begin_layout Enumerate
5970 remove the comment lines before the 
5971 \family typewriter
5972
5973 \backslash
5974 documentclass
5975 \family default
5976  command
5977 \end_layout
5978
5979 \begin_layout Enumerate
5980 remove the 
5981 \family typewriter
5982
5983 \backslash
5984 usepackage...{fontenc}
5985 \family default
5986  line if it appears (usually just after 
5987 \family typewriter
5988
5989 \backslash
5990 documentclass
5991 \family default
5992 }; also remove the 
5993 \family typewriter
5994
5995 \backslash
5996 secnumdepth
5997 \family default
5998  line if it appears.
5999 \end_layout
6000
6001 \begin_layout Enumerate
6002 remove everything between (and including) the 
6003 \family typewriter
6004
6005 \backslash
6006 makeatletter
6007 \family default
6008  and 
6009 \family typewriter
6010
6011 \backslash
6012 makeatother
6013 \family default
6014  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6015  preamble
6016  (which should appear immediately after the 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 User specified \SpecialChar LaTeX
6021  commands
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  comment in the 
6026 \family typewriter
6027 .tex
6028 \family default
6029  file).
6030 \end_layout
6031
6032 \end_deeper
6033 \begin_layout Enumerate
6034 Run the resulting file through \SpecialChar LaTeX
6035  to make sure it still processes correctly.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 Reread the journal requirements to make sure your filenames and formats
6040  are correct.
6041 \end_layout
6042
6043 \begin_layout Enumerate
6044 Submit it.
6045 \end_layout
6046
6047 \begin_layout Subsubsection
6048 Comments On Specific Commands
6049 \end_layout
6050
6051 \begin_layout Standard
6052 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6053  commands: the
6054  AAS\SpecialChar TeX
6055  User Guide (
6056 \family typewriter
6057 aasguide.tex
6058 \family default
6059 ) gives a good description of each.
6060  Thus it's probably easiest for me to go down the list as found in the guide
6061  and offer comments where necessary.
6062  So let's begin \SpecialChar ldots
6063
6064 \end_layout
6065
6066 \begin_layout Paragraph
6067 Things that work as expected
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Because they work as you might expect, I simply list them and the section
6072  they are found in: 
6073 \family typewriter
6074
6075 \backslash
6076 documentclass
6077 \family default
6078  (2.1.1), 
6079 \family typewriter
6080
6081 \backslash
6082 begin{document}
6083 \family default
6084  (2.2), 
6085 \family typewriter
6086
6087 \backslash
6088 title
6089 \family default
6090  (2.3), 
6091 \family typewriter
6092
6093 \backslash
6094 author
6095 \family default
6096  (2.3), 
6097 \family typewriter
6098
6099 \backslash
6100 affil
6101 \family default
6102  (2.3), 
6103 \family typewriter
6104
6105 \backslash
6106 abstract
6107 \family default
6108  (2.4), 
6109 \family typewriter
6110
6111 \backslash
6112 keywords
6113 \family default
6114  (2.5), 
6115 \family typewriter
6116
6117 \backslash
6118 section
6119 \family default
6120  (2.7), 
6121 \family typewriter
6122
6123 \backslash
6124 subsection
6125 \family default
6126  (2.7), 
6127 \family typewriter
6128
6129 \backslash
6130 subsubsection
6131 \family default
6132  (2.7), 
6133 \family typewriter
6134
6135 \backslash
6136 paragraph
6137 \family default
6138  (2.7), 
6139 \family typewriter
6140
6141 \backslash
6142 facility
6143 \family default
6144  (2.10), 
6145 \family typewriter
6146
6147 \backslash
6148 begin{displaymath}
6149 \family default
6150  (2.12), 
6151 \family typewriter
6152
6153 \backslash
6154 begin{equation}
6155 \family default
6156  (2.12), 
6157 \family typewriter
6158
6159 \backslash
6160 begin{eqnarray}
6161 \family default
6162  (2.12), 
6163 \family typewriter
6164
6165 \backslash
6166 begin{mathletters}
6167 \family default
6168  (2.12), 
6169 \family typewriter
6170
6171 \backslash
6172 begin{thebibliography}
6173 \family default
6174  (2.13.1), 
6175 \family typewriter
6176
6177 \backslash
6178 bibitem
6179 \family default
6180  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6181  graphicx figure commands (2.14.1), 
6182 \family typewriter
6183
6184 \backslash
6185 begin{table}
6186 \family default
6187  (2.15.4), 
6188 \family typewriter
6189
6190 \backslash
6191 begin{tabular}
6192 \family default
6193  (2.15.4), 
6194 \family typewriter
6195
6196 \backslash
6197 caption
6198 \family default
6199  (2.15.4), 
6200 \family typewriter
6201
6202 \backslash
6203 label
6204 \family default
6205  (2.15.4, amongst other places), 
6206 \family typewriter
6207
6208 \backslash
6209 tablerefs
6210 \family default
6211  (2.15.5), 
6212 \family typewriter
6213
6214 \backslash
6215 tablecomments
6216 \family default
6217  (2.15.5), 
6218 \family typewriter
6219
6220 \backslash
6221 url
6222 \family default
6223  (2.17.4), 
6224 \family typewriter
6225
6226 \backslash
6227 end{document}
6228 \family default
6229  (2.18).
6230 \end_layout
6231
6232 \begin_layout Standard
6233 The following style options also work correctly: 
6234 \family typewriter
6235 longabstract
6236 \family default
6237  (2.4), 
6238 \family typewriter
6239 preprint
6240 \family default
6241  (3.2.1), 
6242 \family typewriter
6243 preprint2
6244 \family default
6245  (3.2.2), 
6246 \family typewriter
6247 eqsecnum
6248 \family default
6249  (3.3), 
6250 \family typewriter
6251 flushrt
6252 \family default
6253  (3.4).
6254  Simply put them in the 
6255 \family sans
6256 Options
6257 \family default
6258  box in 
6259 \family sans
6260 Layout\SpecialChar menuseparator
6261 Document
6262 \family default
6263 .
6264 \end_layout
6265
6266 \begin_layout Paragraph
6267 Things that work, but require more comment
6268 \end_layout
6269
6270 \begin_layout Standard
6271 The following items work, but require a little more discussion:
6272 \end_layout
6273
6274 \begin_layout Itemize
6275 These items are reserved for use by the journal editors, but you can put
6276  them into the \SpecialChar LaTeX
6277  preamble if you feel compelled to do so: 
6278 \family typewriter
6279
6280 \backslash
6281 received
6282 \family default
6283
6284 \family typewriter
6285
6286 \backslash
6287 revised
6288 \family default
6289
6290 \family typewriter
6291
6292 \backslash
6293 accepted
6294 \family default
6295
6296 \family typewriter
6297
6298 \backslash
6299 ccc
6300 \family default
6301
6302 \family typewriter
6303
6304 \backslash
6305 cpright
6306 \family default
6307  (all from 2.1.3)
6308 \end_layout
6309
6310 \begin_layout Itemize
6311 These items may be placed in the \SpecialChar LaTeX
6312  preamble, and are included as blanks in
6313  the template file: 
6314 \family typewriter
6315
6316 \backslash
6317 slugcomment
6318 \family default
6319  (2.1.4), 
6320 \family typewriter
6321
6322 \backslash
6323 shorttitle
6324 \family default
6325  (2.1.5), 
6326 \family typewriter
6327
6328 \backslash
6329 shortauthors
6330 \family default
6331  (2.1.5)
6332 \end_layout
6333
6334 \begin_layout Itemize
6335
6336 \family typewriter
6337
6338 \backslash
6339 email
6340 \family default
6341  (2.3) – can only be used 
6342 \begin_inset Quotes eld
6343 \end_inset
6344
6345 standalone
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 , not in the middle of a paragraph.
6350  Use \SpecialChar TeX
6351  code if you need to embed it.
6352 \end_layout
6353
6354 \begin_layout Itemize
6355
6356 \family typewriter
6357
6358 \backslash
6359 and
6360 \family default
6361  (2.3) – will have extra {} after it.
6362  This should not cause an error.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366
6367 \family typewriter
6368
6369 \backslash
6370 notetoeditor
6371 \family default
6372  (2.6) – can only be used 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 standalone
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380 , not in the middle of a paragraph.
6381  Use \SpecialChar TeX
6382  code if you need to embed it.
6383 \end_layout
6384
6385 \begin_layout Itemize
6386
6387 \family typewriter
6388
6389 \backslash
6390 placetable
6391 \family default
6392  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6393  hand
6394 \end_layout
6395
6396 \begin_layout Itemize
6397
6398 \family typewriter
6399
6400 \backslash
6401 placefigure
6402 \family default
6403  (2.8) – same as for 
6404 \family typewriter
6405
6406 \backslash
6407 placetable
6408 \end_layout
6409
6410 \begin_layout Itemize
6411
6412 \family typewriter
6413
6414 \backslash
6415 acknowledgements
6416 \family default
6417  (2.9) – will have extra {} after it.
6418  This should not cause an error.
6419 \end_layout
6420
6421 \begin_layout Itemize
6422
6423 \family typewriter
6424
6425 \backslash
6426 appendix
6427 \family default
6428  (2.11) – will have extra {} after it.
6429  This should not cause an error.
6430 \end_layout
6431
6432 \begin_layout Itemize
6433
6434 \family typewriter
6435
6436 \backslash
6437 figcaption
6438 \family default
6439  (2.14.2) – you can insert an optional filename argument by placing the cursor
6440  at the beginning of the text and selecting 
6441 \family sans
6442 Insert\SpecialChar menuseparator
6443 Short Title
6444 \family default
6445 .
6446  
6447 \begin_inset Quotes eld
6448 \end_inset
6449
6450 Short Title
6451 \begin_inset Quotes erd
6452 \end_inset
6453
6454  inserts an optional argument of the type needed by 
6455 \family typewriter
6456
6457 \backslash
6458 figcaption
6459 \family default
6460 .
6461  Hopefully it will be renamed someday.
6462 \end_layout
6463
6464 \begin_layout Itemize
6465
6466 \family typewriter
6467
6468 \backslash
6469 objectname
6470 \family default
6471  (2.17.1) – same as 
6472 \family typewriter
6473
6474 \backslash
6475 figcaption
6476 \family default
6477  for the catalog ID optional parameter
6478 \end_layout
6479
6480 \begin_layout Itemize
6481
6482 \family typewriter
6483
6484 \backslash
6485 dataset
6486 \family default
6487  (2.17.1) – same as 
6488 \family typewriter
6489
6490 \backslash
6491 figcaption
6492 \family default
6493  for the catalog ID optional parameter
6494 \end_layout
6495
6496 \begin_layout Paragraph
6497 Things not implemented, use \SpecialChar TeX
6498  code
6499 \end_layout
6500
6501 \begin_layout Standard
6502
6503 \family typewriter
6504
6505 \backslash
6506 eqnum
6507 \family default
6508  (2.12), 
6509 \family typewriter
6510
6511 \backslash
6512 setcounter{equation}
6513 \family default
6514  (2.12), Journal name abbreviations (2.13.4), 
6515 \family typewriter
6516
6517 \backslash
6518 figurenum
6519 \family default
6520  (2.14.1), 
6521 \family typewriter
6522
6523 \backslash
6524 epsscale
6525 \family default
6526  (2.14.1), 
6527 \family typewriter
6528
6529 \backslash
6530 plotone
6531 \family default
6532  (2.14.1), 
6533 \family typewriter
6534
6535 \backslash
6536 plottwo
6537 \family default
6538  (2.14.1), 
6539 \family typewriter
6540
6541 \backslash
6542 tablenum
6543 \family default
6544  (2.15.4), 
6545 \family typewriter
6546
6547 \backslash
6548 tableline
6549 \family default
6550  (2.15.4, insert it as the first element in the lefthand cell after where
6551  you want it.
6552  Don't use any of \SpecialChar LyX
6553 's rules in the table), 
6554 \family typewriter
6555
6556 \backslash
6557 tablenotemark
6558 \family default
6559  (2.15.5), 
6560 \family typewriter
6561
6562 \backslash
6563 tablenotetext
6564 \family default
6565  (2.15.5), much of Misc (2.17, except 
6566 \family typewriter
6567
6568 \backslash
6569 objectname
6570 \family default
6571
6572 \family typewriter
6573
6574 \backslash
6575 dataset
6576 \family default
6577
6578 \family typewriter
6579
6580 \backslash
6581 url
6582 \family default
6583 , and 
6584 \family typewriter
6585
6586 \backslash
6587 email
6588 \family default
6589 ; see above), 
6590 \family typewriter
6591
6592 \backslash
6593 singlespace
6594 \family default
6595  (3.1), 
6596 \family typewriter
6597
6598 \backslash
6599 doublespace
6600 \family default
6601  (3.1), 
6602 \family typewriter
6603
6604 \backslash
6605 onecolumn
6606 \family default
6607  (3.2), 
6608 \family typewriter
6609
6610 \backslash
6611 twocolumn
6612 \family default
6613  (3.2)
6614 \end_layout
6615
6616 \begin_layout Paragraph
6617 Things that cannot be implemented
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar ldots
6622  at least in any meaningful sort of way, so I suggest ignoring them.
6623  They are the references environment (2.13.3), and the deluxetable environment
6624  (2.15).
6625  If you really, really need to use deluxetable, I suggest editing it in
6626  a separate file with a text editor, then using 
6627 \family sans
6628 Insert\SpecialChar menuseparator
6629 Child
6630 \begin_inset space ~
6631 \end_inset
6632
6633 Document
6634 \family default
6635  to include it in your \SpecialChar LyX
6636  document.
6637  See the 
6638 \family typewriter
6639 aas_sample.lyx
6640 \family default
6641  file to see an example of this.
6642 \end_layout
6643
6644 \begin_layout Subsubsection
6645 FAQs, Tips, Tricks, and Other Ruminations
6646 \end_layout
6647
6648 \begin_layout Paragraph
6649 Getting \SpecialChar LyX
6650  and AAS\SpecialChar TeX
6651  to cooperate
6652 \end_layout
6653
6654 \begin_layout Standard
6655 It can be a bit tricky to get \SpecialChar LyX
6656  to recognize a new layout and document class.
6657  When all else fails, do this:
6658 \end_layout
6659
6660 \begin_layout Enumerate
6661 Make certain that \SpecialChar LaTeX
6662  can find AAS\SpecialChar TeX
6663 .
6664  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6665  distribution into a
6666  directory completely unrelated to \SpecialChar LaTeX
6667  or AAS\SpecialChar TeX
6668  and run \SpecialChar LaTeX
6669  on 
6670 \family typewriter
6671 sample.tex
6672 \family default
6673 .
6674 \end_layout
6675
6676 \begin_layout Enumerate
6677 Make certain that 
6678 \family typewriter
6679 aastex.layout
6680 \family default
6681  appears in \SpecialChar LyX
6682 's 
6683 \family typewriter
6684 layouts
6685 \family default
6686  folder
6687 \end_layout
6688
6689 \begin_layout Enumerate
6690 Rerun 
6691 \family sans
6692 Tools\SpecialChar menuseparator
6693 Reconfigure
6694 \family default
6695  in \SpecialChar LyX
6696 , then restart \SpecialChar LyX
6697 .
6698 \end_layout
6699
6700 \begin_layout Enumerate
6701 Open a regular new file, not from a template.
6702  Does AAS\SpecialChar TeX
6703  appear in the class list in 
6704 \family sans
6705 Document\SpecialChar menuseparator
6706 Settings
6707 \family default
6708 ?
6709 \end_layout
6710
6711 \begin_layout Standard
6712 If you get a warning from an existing AAS\SpecialChar TeX
6713  document about not being able
6714  to find the AAS\SpecialChar TeX
6715  layout or a message about 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719 You should not mix title layouts with normal ones
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723 , things haven't been installed correctly.
6724 \end_layout
6725
6726 \begin_layout Paragraph
6727 \SpecialChar LaTeX
6728  error processing a table 
6729 \end_layout
6730
6731 \begin_layout Standard
6732 \SpecialChar LyX
6733 , by default, attempts to center the table caption/title.
6734  This seems to produce a bad interaction in AAS\SpecialChar TeX
6735  so you should click somewhere
6736  in the caption/title, then select 
6737 \family sans
6738 Edit\SpecialChar menuseparator
6739 Paragraph
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Settings
6744 \family default
6745 , then set the 
6746 \family sans
6747 Alignment
6748 \family default
6749  to 
6750 \family sans
6751 Block
6752 \family default
6753 .
6754  This took care of it for me.
6755 \end_layout
6756
6757 \begin_layout Paragraph
6758 References
6759 \end_layout
6760
6761 \begin_layout Standard
6762 A couple of things: 1) I have noticed some funny spacing in the reference
6763  entries in the text.
6764  When you enter the bibliography item data, make sure their is 
6765 \emph on
6766 no
6767 \emph default
6768  space between the last author and the parenthesis setting off the year;
6769  
6770 \emph on
6771 e.
6772 \begin_inset space \thinspace{}
6773 \end_inset
6774
6775 g.
6776 \begin_inset space \space{}
6777 \end_inset
6778
6779
6780 \emph default
6781 type 
6782 \family typewriter
6783 Ressler(1992)
6784 \family default
6785 , not 
6786 \family typewriter
6787 Ressler (1992)
6788 \family default
6789 .
6790  2) Entering the references at all is not obvious.
6791  The easiest thing is to start typing your first reference at the end of
6792  the document, then mark it as type 
6793 \family sans
6794 References
6795 \family default
6796 .
6797  That will put a small gray box in front of what you just typed.
6798  Click on the box to fill in the rest of the information.
6799  For new references, go to the end of an existing reference and press return.
6800  That will create a new line with its own box, etc.
6801 \end_layout
6802
6803 \begin_layout Paragraph
6804 Including EPS files
6805 \end_layout
6806
6807 \begin_layout Standard
6808 Even though AAS\SpecialChar TeX
6809  provides its own figure commands (
6810 \family typewriter
6811
6812 \backslash
6813 plotone
6814 \family default
6815 , for example), I much prefer \SpecialChar LaTeX
6816 's standard figure commands (with the default
6817  graphicx).
6818  You can insert the 
6819 \family typewriter
6820
6821 \backslash
6822 plotone
6823 \family default
6824 , etc.
6825 \begin_inset space ~
6826 \end_inset
6827
6828 commands as \SpecialChar TeX
6829  code into a Figure Float box if you desire, but I never have
6830  much luck getting the layout right.
6831  With the standard graphics, \SpecialChar LyX
6832  will insert a 
6833 \family typewriter
6834
6835 \backslash
6836 usepackage{graphicx}
6837 \family default
6838  command into the \SpecialChar LaTeX
6839  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6840  way,
6841  interspersing the figures in the text.
6842  I believe ApJ accepts figures exactly this way now; AJ might still use
6843  the 
6844 \begin_inset Quotes eld
6845 \end_inset
6846
6847 stack everything at the end
6848 \begin_inset Quotes erd
6849 \end_inset
6850
6851  technique.
6852 \end_layout
6853
6854 \begin_layout Paragraph
6855 Things I could have done, but didn't
6856 \end_layout
6857
6858 \begin_layout Standard
6859 There are a few 
6860 \begin_inset Quotes eld
6861 \end_inset
6862
6863 pretty
6864 \begin_inset Quotes erd
6865 \end_inset
6866
6867  things I could have implemented, but chose not to.
6868  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6869  window,
6870  even though it is double-spaced in the paper manuscript.
6871  Also, I chose not to make separate layouts for the preprint and preprint2
6872  styles.
6873  Since I assume you will spend most of your time in the plain manuscript
6874  mode anyway, I decided not to chew up more disk space with this.
6875  
6876 \end_layout
6877
6878 \begin_layout Subsubsection
6879 Final Caveat
6880 \end_layout
6881
6882 \begin_layout Standard
6883 Your mileage may vary.
6884  I've now had papers published by both ApJ and AJ that have had 98% of the
6885  effort done in \SpecialChar LyX
6886 ; the last 2% was the \SpecialChar LaTeX
6887  post-processing and a few cleanups.
6888  I have had no trouble with the submission process, and I'm sure the journals
6889  were never aware that there might be a difference.
6890  So, go forth and publish!
6891 \end_layout
6892
6893 \begin_layout Subsection
6894
6895 \change_inserted 564990737 1671042028
6896
6897 \lang american
6898 Elsevier
6899 \end_layout
6900
6901 \begin_layout Standard
6902
6903 \change_inserted 564990737 1671042028
6904
6905 \lang american
6906 The document class 
6907 \family sans
6908 article
6909 \begin_inset space \thinspace{}
6910 \end_inset
6911
6912 (Elsevier)
6913 \family default
6914  provides the 
6915 \family typewriter
6916 elsarticle.cls
6917 \family default
6918  document class.
6919  This provides the following additional environments: 
6920 \family sans
6921 Title
6922 \begin_inset space ~
6923 \end_inset
6924
6925 footnote
6926 \family default
6927
6928 \family sans
6929 Author
6930 \begin_inset space ~
6931 \end_inset
6932
6933 footnote
6934 \family default
6935
6936 \family sans
6937 Corresponding
6938 \begin_inset space ~
6939 \end_inset
6940
6941 author
6942 \family default
6943
6944 \family sans
6945 Address
6946 \family default
6947
6948 \family sans
6949 Email
6950 \family default
6951  and 
6952 \family sans
6953 Keywords
6954 \family default
6955 .
6956  A template 
6957 \family typewriter
6958 elsarticle.lyx
6959 \family default
6960 .
6961  is available in the menu 
6962 \family sans
6963 \bar under
6964 F
6965 \bar default
6966 ile\SpecialChar menuseparator
6967 New
6968 \begin_inset space ~
6969 \end_inset
6970
6971 fro
6972 \bar under
6973 m
6974 \bar default
6975
6976 \begin_inset space ~
6977 \end_inset
6978
6979 Template
6980 \family default
6981 .
6982  It has been customized with further environments and contains all the informati
6983 on you may need.
6984  However, the documentation is also available from 
6985 \begin_inset CommandInset href
6986 LatexCommand href
6987 name "CTAN"
6988 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
6989 literal "false"
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Subsection
6997
6998 \change_inserted 564990737 1671042046
6999
7000 \lang american
7001 Paper
7002 \end_layout
7003
7004 \begin_layout Standard
7005
7006 \change_inserted 564990737 1671042046
7007
7008 \lang american
7009 The document class 
7010 \family sans
7011 article
7012 \begin_inset space \thinspace{}
7013 \end_inset
7014
7015 (paper)
7016 \family default
7017  provides an alternative to the 
7018 \family typewriter
7019 article.cls
7020 \family default
7021  document class.
7022  It provides similar functionality, but you might prefer this layout with
7023  sans serif sections, headings, and more.
7024 \end_layout
7025
7026 \begin_layout Subsection
7027 Rev\SpecialChar TeX
7028 4
7029 \end_layout
7030
7031 \begin_layout Standard
7032 by 
7033 \noun on
7034 Amir Karger
7035 \end_layout
7036
7037 \begin_layout Standard
7038 \begin_inset VSpace bigskip
7039 \end_inset
7040
7041
7042 \end_layout
7043
7044 \begin_layout Standard
7045 \noindent
7046 The 
7047 \family sans
7048 Revtex
7049 \begin_inset space ~
7050 \end_inset
7051
7052 4
7053 \family default
7054  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7055  4.0 (the 
7056 \begin_inset Formula $\beta$
7057 \end_inset
7058
7059  release of May, 1999) class.
7060 \end_layout
7061
7062 \begin_layout Standard
7063 \SpecialChar LyX
7064  has a 
7065 \family sans
7066 Revtex
7067 \family default
7068  textclass, which works with Rev\SpecialChar TeX
7069  3.1.
7070  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7071  2.09.
7072  That means that it doesn't interact very well with \SpecialChar LyX
7073 , which requires \SpecialChar LaTeX2e
7074 , although
7075  it has been kludged to work.
7076  Since Rev\SpecialChar TeX
7077  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7078 , \SpecialChar LyX
7079  with the
7080  
7081 \family sans
7082 Rev\SpecialChar TeX
7083
7084 \begin_inset space ~
7085 \end_inset
7086
7087 4
7088 \family default
7089  textclass should also be pretty easy to use.
7090 \end_layout
7091
7092 \begin_layout Standard
7093 These documents are supposed to be used in 
7094 \emph on
7095 addition
7096 \emph default
7097  to the Rev\SpecialChar TeX
7098  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7099  macros,
7100  and assume you'll know what to put in the preamble if necessary.
7101 \end_layout
7102
7103 \begin_layout Subsubsection
7104 Installation
7105 \end_layout
7106
7107 \begin_layout Standard
7108 All you need to do is install Rev\SpecialChar TeX
7109  4, as described in the package's README
7110  file.
7111  The package can be found at The Rev\SpecialChar TeX
7112  4 Web Site 
7113 \begin_inset Flex URL
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117
7118 http://publish.aps.org/revtex4/
7119 \end_layout
7120
7121 \end_inset
7122
7123 .
7124  Install it somewhere that \SpecialChar LaTeX
7125  can see it.
7126  Test it by trying to \SpecialChar LaTeX
7127  a short Rev\SpecialChar TeX
7128  4 document in some random directory (i.
7129 \begin_inset space \thinspace{}
7130 \end_inset
7131
7132 e.
7133 \begin_inset space \space{}
7134 \end_inset
7135
7136 not the directory where you installed the class file.) Then, if you reconfigure
7137  \SpecialChar LyX
7138 , it will find the class file and let you use the Rev\SpecialChar TeX
7139 4 textclass.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7144  4 document
7145  using 
7146 \family typewriter
7147 tex2lyx
7148 \family default
7149 , or to use the 
7150 \family sans
7151 Revtex
7152 \begin_inset space ~
7153 \end_inset
7154
7155 4
7156 \family default
7157  template, found in the templates directory.
7158 \end_layout
7159
7160 \begin_layout Subsubsection
7161 Preamble Matter
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Optional arguments to 
7166 \family typewriter
7167
7168 \backslash
7169 documentclass
7170 \family default
7171 , like 
7172 \begin_inset Quotes eld
7173 \end_inset
7174
7175 preprint
7176 \begin_inset Quotes erd
7177 \end_inset
7178
7179  and 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 aps
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187 , go in the 
7188 \family sans
7189 Extra
7190 \begin_inset space ~
7191 \end_inset
7192
7193 Options
7194 \family default
7195  field in the 
7196 \family sans
7197 Document
7198 \begin_inset space ~
7199 \end_inset
7200
7201 Layout
7202 \family default
7203  dialog, as usual.
7204  Remember that in Rev\SpecialChar TeX
7205 , at least one optional argument is required! 
7206 \end_layout
7207
7208 \begin_layout Standard
7209 Other preamble matter, like 
7210 \family typewriter
7211
7212 \backslash
7213 draft
7214 \family default
7215  etc.
7216 \begin_inset space ~
7217 \end_inset
7218
7219 goes in the 
7220 \family sans
7221 \SpecialChar LaTeX
7222
7223 \begin_inset space ~
7224 \end_inset
7225
7226 Preamble
7227 \family default
7228  dialog, also as usual.
7229 \end_layout
7230
7231 \begin_layout Subsubsection
7232 Layouts
7233 \end_layout
7234
7235 \begin_layout Standard
7236 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7237 4.0.
7238  For example, the Email layout corresponds to 
7239 \family typewriter
7240
7241 \backslash
7242 email{}
7243 \family default
7244 .
7245  Note that (at least as of Rev\SpecialChar TeX
7246  4.0 Beta), the 
7247 \family sans
7248 Address
7249 \family default
7250  and 
7251 \family sans
7252 Affiliation
7253 \family default
7254  layouts are exactly equivalent, so you shouldn't need to use both.
7255 \begin_inset Foot
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 In case you're curious, both were included so that 
7260 \family typewriter
7261 tex2lyx
7262 \family default
7263  would be able to translate both 
7264 \family typewriter
7265
7266 \backslash
7267 address
7268 \family default
7269  and 
7270 \family typewriter
7271
7272 \backslash
7273 affiliation
7274 \family default
7275 .
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \end_layout
7282
7283 \begin_layout Subsubsection
7284 Important Notes
7285 \end_layout
7286
7287 \begin_layout Standard
7288 There are a couple of important unique aspects of Rev\SpecialChar TeX
7289  4 which might cause
7290  bugs that will be even more confusing in \SpecialChar LyX
7291 .
7292 \end_layout
7293
7294 \begin_layout Standard
7295 In Rev\SpecialChar TeX
7296 , the 
7297 \family typewriter
7298
7299 \backslash
7300 thanks
7301 \family default
7302  command goes 
7303 \emph on
7304 outside
7305 \emph default
7306  the 
7307 \family typewriter
7308
7309 \backslash
7310 author
7311 \family default
7312  command.
7313  The \SpecialChar LyX
7314  equivalent is that there is a separate Thanks layout.
7315  Do 
7316 \emph on
7317 not
7318 \emph default
7319  write footnotes in the 
7320 \family sans
7321 Author
7322 \family default
7323  layout, or weird things may happen.
7324  See the Rev\SpecialChar TeX
7325  4 documentation for more details.
7326 \end_layout
7327
7328 \begin_layout Standard
7329 Also, the 
7330 \family sans
7331 Author
7332 \begin_inset space ~
7333 \end_inset
7334
7335 Email
7336 \family default
7337
7338 \family sans
7339 Author
7340 \begin_inset space ~
7341 \end_inset
7342
7343 URL
7344 \family default
7345 , and 
7346 \family sans
7347 Thanks
7348 \family default
7349  layouts must be placed 
7350 \emph on
7351 in between
7352 \emph default
7353  the 
7354 \family sans
7355 Author
7356 \family default
7357  layout and the corresponding 
7358 \family sans
7359 Address
7360 \family default
7361  (or equivalent 
7362 \family sans
7363 Affiliation
7364 \family default
7365 ) layout.
7366  If you put the 
7367 \family sans
7368 Thanks
7369 \family default
7370  after the 
7371 \family sans
7372 Address
7373 \family default
7374 , the \SpecialChar LaTeX
7375  won't compile.
7376 \end_layout
7377
7378 \begin_layout Subsection
7379
7380 \change_inserted 564990737 1671042072
7381
7382 \lang american
7383 Springer Journals
7384 \end_layout
7385
7386 \begin_layout Standard
7387
7388 \change_inserted 564990737 1671042072
7389
7390 \lang american
7391 All the 
7392 \family sans
7393 svj*
7394 \family default
7395  classes were replaced in 2013 with a completely new 
7396 \family sans
7397 sr-vorl.cls
7398 \family default
7399 .
7400  This package provides a \SpecialChar LaTeX
7401  class and templates for books to be published
7402  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7403  Research, Springer VS Research, or Springer VS Forschung.
7404  The documentation is available in German from 
7405 \begin_inset CommandInset href
7406 LatexCommand href
7407 name "CTAN"
7408 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7409 literal "false"
7410
7411 \end_inset
7412
7413 .
7414 \end_layout
7415
7416 \begin_layout Section
7417
7418 \change_inserted 564990737 1670439560
7419 Books
7420 \end_layout
7421
7422 \begin_layout Standard
7423
7424 \change_inserted 564990737 1670439581
7425 See also the document classes in the Collections (section
7426 \begin_inset space ~
7427 \end_inset
7428
7429
7430 \begin_inset CommandInset ref
7431 LatexCommand ref
7432 reference "sec:Collections"
7433
7434 \end_inset
7435
7436 ).
7437 \end_layout
7438
7439 \begin_layout Subsection
7440 Memoir
7441 \end_layout
7442
7443 \begin_layout Standard
7444 By 
7445 \noun on
7446 Jürgen Spitzmüller
7447 \end_layout
7448
7449 \begin_layout Subsubsection
7450 Overview
7451 \end_layout
7452
7453 \begin_layout Standard
7454 Memoir is a very powerful and constantly evolving class.
7455  It has been designed with regard to fictional and non-fictional literature.
7456  Its aim is to let the user have maximum control over the typesetting of
7457  his document.
7458  Memoir is based on the standard book class, but it can also emulate the
7459  article class (see below).
7460 \end_layout
7461
7462 \begin_layout Standard
7463 Peter Wilson, the developer of Memoir, is known as the author of lots of
7464  useful packages in the \SpecialChar LaTeX
7465  world.
7466  Most of them have been merged with Memoir.
7467  Therefore, it is much easier to layout the table of contents, appendices,
7468  chapter designs and such.
7469  \SpecialChar LyX
7470 , though, does not support all of these goodies natively.
7471  Some of them might be added to forthcoming releases
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 You are invited to send suggestions to 
7477 \begin_inset Flex URL
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481
7482 lyx-devel@lists.lyx.org
7483 \end_layout
7484
7485 \end_inset
7486
7487 .
7488 \end_layout
7489
7490 \end_inset
7491
7492 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7493 's framework.
7494  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7495
7496  commands (\SpecialChar TeX
7497  code
7498 \begin_inset Foot
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 Cf.
7503 \begin_inset ERT
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507
7508
7509 \backslash
7510  
7511 \end_layout
7512
7513 \end_inset
7514
7515 section
7516 \begin_inset space ~
7517 \end_inset
7518
7519
7520 \begin_inset CommandInset ref
7521 LatexCommand ref
7522 reference "sec:Inserting-TeX-Code"
7523
7524 \end_inset
7525
7526  for details.
7527 \end_layout
7528
7529 \end_inset
7530
7531 ).
7532  In this section, we can only list those features that are natively supported
7533  by \SpecialChar LyX
7534 .
7535  For detailed descriptions (and for the rest of features) we recommend you
7536  have a look at the detailed manual of the Memoir class
7537 \begin_inset Foot
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Cf.
7542 \begin_inset ERT
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546
7547
7548 \backslash
7549  
7550 \end_layout
7551
7552 \end_inset
7553
7554
7555 \begin_inset Flex URL
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559
7560 CTAN:/macros/latex/memoir/memman.pdf
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566 \end_layout
7567
7568 \end_inset
7569
7570 , which is not only a user guide for the class, but also both a comprehensive
7571  description on good typesetting and a superb example for good typesetting
7572  itself.
7573 \end_layout
7574
7575 \begin_layout Subsubsection
7576 Basic features and restrictions
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Memoir supports basically all features of the standard book classes.
7581  There are, however, some differences, as follows:
7582 \end_layout
7583
7584 \begin_layout Description
7585 Font
7586 \begin_inset space ~
7587 \end_inset
7588
7589 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7590 \end_layout
7591
7592 \begin_layout Description
7593 Page
7594 \begin_inset space ~
7595 \end_inset
7596
7597 style: The fancy page style is not supported, due to a command clash between
7598  Memoir and the fancyhdr package (they both define a command with the same
7599  name, which confuses \SpecialChar LaTeX
7600 ).
7601  Instead, Memoir comes with a number of its own page styles (see 
7602 \family sans
7603 Document\SpecialChar menuseparator
7604 Settings\SpecialChar menuseparator
7605 Page
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Style
7610 \family default
7611 ).
7612  If you want to use these for the chapter pages, you have to use the command
7613  
7614 \family typewriter
7615
7616 \backslash
7617 chapterstyle
7618 \family default
7619  in the main text or in preamble (e.
7620 \begin_inset space \thinspace{}
7621 \end_inset
7622
7623 g.
7624 \begin_inset space \space{}
7625 \end_inset
7626
7627
7628 \family typewriter
7629
7630 \backslash
7631 chapterstyle{companion}
7632 \family default
7633 ).
7634 \end_layout
7635
7636 \begin_layout Description
7637 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7638  optional argument in the standard classes.
7639  With this, you can specify an alternative version of the title for the
7640  table of contents and the headers (for instance, if the title is too long).
7641  In \SpecialChar LyX
7642 , you can do this via 
7643 \family sans
7644 Insert\SpecialChar menuseparator
7645 Short
7646 \begin_inset space ~
7647 \end_inset
7648
7649 Title
7650 \family default
7651  at the beginning of a chapter/section.
7652  Memoir features a second optional argument and thus separates the table
7653  of contents from the header.
7654  You can define three variants of a title with this: one for the main text,
7655  one for the table of contents, and one for the headers.
7656  \SpecialChar LyX
7657  makes these available in form of specific 
7658 \family sans
7659 Short Title
7660 \family default
7661  variants in the 
7662 \family sans
7663 Insert
7664 \family default
7665  menu.
7666 \end_layout
7667
7668 \begin_layout Description
7669 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7670  of contents, the list of figures and the list of table start a new page
7671  automatically.
7672  Memoir does not follow this route.
7673  You have to insert a page break yourself, if you want to have one.
7674 \end_layout
7675
7676 \begin_layout Description
7677 Titlepage: For some unknown reason, Memoir uses pagination on the title
7678  page (in the standard classes, title pages are 
7679 \begin_inset Quotes eld
7680 \end_inset
7681
7682 empty
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686 ).
7687  If you want an empty title page, type 
7688 \family typewriter
7689
7690 \backslash
7691 aliaspagestyle{title}{empty}
7692 \family default
7693  in the preamble.
7694 \end_layout
7695
7696 \begin_layout Description
7697 Article: With the class option 
7698 \emph on
7699 article
7700 \emph default
7701  (to be inserted in 
7702 \family sans
7703 Document\SpecialChar menuseparator
7704 Settings\SpecialChar menuseparator
7705 Class Settings\SpecialChar menuseparator
7706 Custom
7707 \begin_inset space ~
7708 \end_inset
7709
7710 Options
7711 \family default
7712 ), you can emulate article style.
7713  That is, counters (footnotes, figures, tables etc.) will not be reset on
7714  new chapters, chapters don't start a new page (but are—in contrary to 
7715 \begin_inset Quotes eld
7716 \end_inset
7717
7718 real
7719 \begin_inset Quotes erd
7720 \end_inset
7721
7722  article classes—still allowed), parts, though, use their own page, as in
7723  book.
7724 \end_layout
7725
7726 \begin_layout Description
7727 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7728  font commands, which have been used in the old \SpecialChar LaTeX
7729  version 2.09 (e.
7730 \begin_inset space \thinspace{}
7731 \end_inset
7732
7733 g.
7734 \begin_inset space \space{}
7735 \end_inset
7736
7737
7738 \family typewriter
7739
7740 \backslash
7741 rm
7742 \family default
7743
7744 \family typewriter
7745
7746 \backslash
7747 it
7748 \family default
7749 ).
7750  It produces an error and stops \SpecialChar LaTeX
7751  whenever such a command appears.
7752  The class option 
7753 \emph on
7754 oldfontcommands
7755 \emph default
7756  reallows the commands and spits out warnings instead (which does at least
7757  not stop \SpecialChar LaTeX
7758 ).
7759  Since a lot of packages and particularly Bib\SpecialChar TeX
7760  style files are still using
7761  those commands, we have decided to use this option by default.
7762 \end_layout
7763
7764 \begin_layout Subsubsection
7765 Extra features
7766 \end_layout
7767
7768 \begin_layout Standard
7769 We will only describe the features supported by \SpecialChar LyX
7770  (which is not much currently).
7771  Please consult the Memoir manual
7772 \begin_inset Foot
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776 Cf.
7777 \begin_inset ERT
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781
7782
7783 \backslash
7784  
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \begin_inset Flex URL
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794
7795 CTAN:/macros/latex/memoir/memman.pdf
7796 \end_layout
7797
7798 \end_inset
7799
7800 .
7801 \end_layout
7802
7803 \end_inset
7804
7805  for details.
7806 \end_layout
7807
7808 \begin_layout Description
7809 Abstract: You may wonder why an abstract is an extra feature.
7810  Well, it is in book class.
7811  Usually books don't have abstracts.
7812  Memoir, however, has.
7813  You can use it wherever and how often you like.
7814 \end_layout
7815
7816 \begin_layout Description
7817 Chapterprecis: You may know this older typesetting style: The contents of
7818  a chapter are summarized below the title and also in the table of contents
7819  (e.
7820 \begin_inset space \thinspace{}
7821 \end_inset
7822
7823 g.
7824 \begin_inset space \space{}
7825 \end_inset
7826
7827
7828 \emph on
7829 Our hero arrives in Troia; he loses some friends; he finds others
7830 \emph default
7831 ).
7832  Chapterprecis does exactly this.
7833  It is therefore only sensible below a chapter.
7834 \end_layout
7835
7836 \begin_layout Description
7837 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7838  The epigraph environment provides an elegant way of typesetting such a
7839  motto.
7840  The motto itself (text) and its (optional) author (source) are divided
7841  by a short line.
7842  The author (source) can be inserted via 
7843 \family sans
7844 Insert\SpecialChar menuseparator
7845 Epigraph Source
7846 \family default
7847 \emph on
7848 .
7849 \end_layout
7850
7851 \begin_layout Description
7852 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7853  complex figurative poems).
7854  \SpecialChar LyX
7855  can only support a few of them.
7856  One is poemtitle, which is a centered title for poems, which will also
7857  be added to the table of contents (verse is the standard environment for
7858  poems.
7859  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7860  code,
7861  because they have to be nested inside regular verse environments, which
7862  is not possible with \SpecialChar LyX
7863 ).
7864 \end_layout
7865
7866 \begin_layout Description
7867 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7868 \end_layout
7869
7870 \begin_layout Section
7871
7872 \change_inserted 564990737 1670439605
7873 Curricula vitarum
7874 \end_layout
7875
7876 \begin_layout Section
7877
7878 \change_inserted 564990737 1671041968
7879 Letters
7880 \end_layout
7881
7882 \begin_layout Subsection
7883
7884 \change_inserted 564990737 1671041970
7885
7886 \lang american
7887 Din-Brief
7888 \end_layout
7889
7890 \begin_layout Standard
7891
7892 \change_inserted 564990737 1671041970
7893
7894 \lang american
7895 The document class 
7896 \family sans
7897 Din-Brief
7898 \family default
7899  provides the 
7900 \family typewriter
7901 dinbrief.cls
7902 \family default
7903  document class for writing letters according to the 
7904 \emph on
7905 Deutsches Institut für Normung
7906 \emph default
7907  conventions.
7908  The file 
7909 \emph on
7910 dinbrief.lyx
7911 \emph default
7912  in the menu 
7913 \family sans
7914 \bar under
7915 F
7916 \bar default
7917 ile\SpecialChar menuseparator
7918 New
7919 \begin_inset space ~
7920 \end_inset
7921
7922 fro
7923 \bar under
7924 m
7925 \bar default
7926
7927 \begin_inset space ~
7928 \end_inset
7929
7930 Template
7931 \family default
7932  offers guidance on its use.
7933  The documentation is available from 
7934 \begin_inset CommandInset href
7935 LatexCommand href
7936 name "CTAN"
7937 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
7938 literal "false"
7939
7940 \end_inset
7941
7942 .
7943 \end_layout
7944
7945 \begin_layout Section
7946
7947 \change_inserted 564990737 1670439660
7948 Presentations
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 Foils [aka 
7953 \family sans
7954 Foil\SpecialChar TeX
7955
7956 \family default
7957 ]
7958 \begin_inset CommandInset label
7959 LatexCommand label
7960 name "sec:foiltex"
7961
7962 \end_inset
7963
7964
7965 \end_layout
7966
7967 \begin_layout Standard
7968 by 
7969 \noun on
7970 Allan Rae
7971 \end_layout
7972
7973 \begin_layout Subsubsection
7974 Introduction
7975 \end_layout
7976
7977 \begin_layout Standard
7978 This section describes how to use \SpecialChar LyX
7979  to make slides for overhead projectors.
7980  There are two document classes that can do this: the default slides class
7981  and the 
7982 \family sans
7983 Foil\SpecialChar TeX
7984
7985 \family default
7986  slides class.
7987  This section documents the latter.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 I'm going to say this again, nice and clear, so that there's no misunderstanding
7992 :
7993 \end_layout
7994
7995 \begin_layout Standard
7996 \begin_inset VSpace bigskip
7997 \end_inset
7998
7999
8000 \end_layout
8001
8002 \begin_layout Standard
8003 \align center
8004
8005 \size large
8006 This section documents the class 
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010
8011 \family sans
8012 FoilTeX
8013 \family default
8014
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  
8019 \emph on
8020 only.
8021 \end_layout
8022
8023 \begin_layout Standard
8024 \begin_inset VSpace bigskip
8025 \end_inset
8026
8027
8028 \end_layout
8029
8030 \begin_layout Standard
8031 If you're looking for the documentation for 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035
8036 \family sans
8037 slides (default)
8038 \family default
8039
8040 \begin_inset Quotes erd
8041 \end_inset
8042
8043 , check out section
8044 \begin_inset space ~
8045 \end_inset
8046
8047
8048 \begin_inset CommandInset ref
8049 LatexCommand ref
8050 reference "sec:slitex"
8051
8052 \end_inset
8053
8054 .
8055  If your machine doesn't have the 
8056 \family sans
8057 foils
8058 \family default
8059  class 
8060 \family sans
8061 FoilTeX
8062 \family default
8063  installed, you'll probably have to use the default 
8064 \family sans
8065 slides
8066 \family default
8067  class, which isn't quite as good as 
8068 \family sans
8069 foils.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 The 
8074 \family sans
8075 foils
8076 \family default
8077  class is designed for use with version
8078 \begin_inset space ~
8079 \end_inset
8080
8081 2.1 of the 
8082 \family sans
8083 foils.cls
8084 \family default
8085  \SpecialChar LaTeX
8086  class file which is now an integral part of \SpecialChar LaTeX2e
8087 .
8088 \end_layout
8089
8090 \begin_layout Subsubsection
8091 Getting Started
8092 \end_layout
8093
8094 \begin_layout Standard
8095 Obviously, to use this document class, you need to select 
8096 \family sans
8097 FoilTeX
8098 \family default
8099  from the 
8100 \family sans
8101 Class
8102 \family default
8103  entry in the 
8104 \family sans
8105 Document
8106 \begin_inset space ~
8107 \end_inset
8108
8109 Layout
8110 \family default
8111  dialog.
8112  There are some settings in the 
8113 \family sans
8114 Document
8115 \begin_inset space ~
8116 \end_inset
8117
8118 Layout
8119 \family default
8120  dialog that you should know about that are specific to this class:
8121 \end_layout
8122
8123 \begin_layout Itemize
8124 Don't change the options 
8125 \family sans
8126 Sides
8127 \family default
8128  and 
8129 \family sans
8130 Columns
8131 \family default
8132  on the 
8133 \family sans
8134 Document
8135 \begin_inset space ~
8136 \end_inset
8137
8138 Layout
8139 \family default
8140  dialog.
8141  They're ignored by the 
8142 \family sans
8143 foils
8144 \family default
8145  class.
8146 \end_layout
8147
8148 \begin_layout Itemize
8149 The default font size is 20
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 pt with the other options being 17
8154 \begin_inset space \thinspace{}
8155 \end_inset
8156
8157 pt, 25
8158 \begin_inset space \thinspace{}
8159 \end_inset
8160
8161 pt and 30
8162 \begin_inset space \thinspace{}
8163 \end_inset
8164
8165 pt.
8166 \end_layout
8167
8168 \begin_layout Itemize
8169 The default font is 
8170 \family sans
8171 sans
8172 \family default
8173  
8174 \family sans
8175 serif
8176 \family default
8177  but all math equations are still typeset in the usual roman font.
8178 \end_layout
8179
8180 \begin_layout Itemize
8181
8182 \family sans
8183 Foil\SpecialChar TeX
8184
8185 \family default
8186  supports A4 and Letter paper sizes as well as a special size for working
8187  with 35
8188 \begin_inset space \thinspace{}
8189 \end_inset
8190
8191 mm slides.
8192  It doesn't support A5, B5, legal or executive paper sizes.
8193 \end_layout
8194
8195 \begin_layout Itemize
8196 Don't bother changing the 
8197 \family sans
8198 Float Placement
8199 \family default
8200  settings because they are ignored anyway.
8201  All floats appear where they are defined in the text.
8202 \end_layout
8203
8204 \begin_layout Itemize
8205 The 
8206 \family sans
8207 Pagestyle
8208 \family default
8209  setting behaves a bit differently for this class.
8210  
8211 \family sans
8212 Foil\SpecialChar TeX
8213
8214 \family default
8215  provides extensive footer and header capabilities including a user-defined
8216  logo.
8217  See section
8218 \begin_inset space ~
8219 \end_inset
8220
8221
8222 \begin_inset CommandInset ref
8223 LatexCommand ref
8224 reference "sec:foilfoot"
8225
8226 \end_inset
8227
8228  for more details.
8229  The title page is treated differently to all other pages in the document
8230  and is 
8231 \emph on
8232 always
8233 \emph default
8234  unnumbered and 
8235 \emph on
8236 always
8237 \emph default
8238  has the logo centered at the bottom of the page (if one is defined).
8239  The possible page style choices and what they do are as follows:
8240 \end_layout
8241
8242 \begin_deeper
8243 \begin_layout Labeling
8244 \labelwidthstring MMMMMMM
8245
8246 \family sans
8247 \series bold
8248 empty
8249 \family default
8250 \series default
8251  The final output contains no page numbers, or other headers or footers
8252  (except footnotes of course).
8253  
8254 \end_layout
8255
8256 \begin_layout Labeling
8257 \labelwidthstring MMMMMMM
8258
8259 \family sans
8260 \series bold
8261 plain
8262 \family default
8263 \series default
8264  The final output contains page numbers centered at the bottom of the page.
8265  No other headings or footers (other than footnotes).
8266 \end_layout
8267
8268 \begin_layout Labeling
8269 \labelwidthstring MMMMMMM
8270
8271 \series bold
8272 foilheadings
8273 \series default
8274  Page numbers in lower right corner.
8275  Additional headers and footers are also shown.
8276  This is also the default.
8277 \end_layout
8278
8279 \begin_layout Labeling
8280 \labelwidthstring MMMMMMM
8281
8282 \series bold
8283 fancy
8284 \series default
8285  Gives you access to the 
8286 \family sans
8287 fancyheadings
8288 \family default
8289  package although its use with 
8290 \family sans
8291 Foil\SpecialChar TeX
8292
8293 \family default
8294  is discouraged by the writer of the 
8295 \family sans
8296 Foil\SpecialChar TeX
8297
8298 \family default
8299  package because of some potential page layout clashes.
8300 \end_layout
8301
8302 \end_deeper
8303 \begin_layout Paragraph
8304 Extra Options
8305 \end_layout
8306
8307 \begin_layout Standard
8308 The following options may be used in the extra class options in the 
8309 \family sans
8310 Document\SpecialChar menuseparator
8311 Settings
8312 \family default
8313  dialog.
8314 \end_layout
8315
8316 \begin_layout Labeling
8317 \labelwidthstring MMMMMMx
8318
8319 \series bold
8320 35mmSlide
8321 \series default
8322  This sets up the page layout for 7.33
8323 \begin_inset space \thinspace{}
8324 \end_inset
8325
8326 in by 11
8327 \begin_inset space \thinspace{}
8328 \end_inset
8329
8330 in paper, which is about the same aspect ratio as a 35
8331 \begin_inset space \thinspace{}
8332 \end_inset
8333
8334 mm slide, making it a bit easier to work with this medium.
8335 \end_layout
8336
8337 \begin_layout Labeling
8338 \labelwidthstring MMMMMMx
8339
8340 \series bold
8341 headrule
8342 \series default
8343  Places a rule across the page below the header on every page except the
8344  title page.
8345 \end_layout
8346
8347 \begin_layout Labeling
8348 \labelwidthstring MMMMMMx
8349
8350 \series bold
8351 footrule
8352 \series default
8353  Places a rule across the page above the footer on every page except the
8354  title page.
8355 \end_layout
8356
8357 \begin_layout Labeling
8358 \labelwidthstring MMMMMMx
8359
8360 \series bold
8361 dvips
8362 \series default
8363  This is automatically set each time you create a new 
8364 \family sans
8365 foils
8366 \family default
8367  document.
8368  This option tells 
8369 \family sans
8370 Foil\SpecialChar TeX
8371
8372 \family default
8373  to use the dvips driver to rotate those pages that are set as landscape
8374  foils.
8375 \end_layout
8376
8377 \begin_layout Labeling
8378 \labelwidthstring MMMMMMx
8379
8380 \series bold
8381 landscape
8382 \series default
8383  Simply changes the page dimensions to those of a landscape page but doesn't
8384  do any rotation.
8385  Thus if you use this option you need to use an external program to rotate
8386  each page or feed your paper through your printer as landscape.
8387  Note that this option effectively reverses the roles of the 
8388 \family sans
8389 Foilhead
8390 \family default
8391  and 
8392 \family sans
8393 Rotatefoilhead
8394 \family default
8395  environments (don't worry these are described in the next section).
8396 \end_layout
8397
8398 \begin_layout Labeling
8399 \labelwidthstring MMMMMMx
8400
8401 \series bold
8402 leqno
8403 \series default
8404  Equation numbers on the left.
8405 \end_layout
8406
8407 \begin_layout Labeling
8408 \labelwidthstring MMMMMMx
8409
8410 \series bold
8411 fleqn
8412 \series default
8413  Flush-left equations.
8414 \end_layout
8415
8416 \begin_layout Subsubsection
8417 Supported Environments
8418 \end_layout
8419
8420 \begin_layout Standard
8421 Most of the environments commonly supported in other classes are also supported
8422  by the 
8423 \family sans
8424 foils
8425 \family default
8426  class.
8427  There are several additional environments provided by 
8428 \family sans
8429 Foil\SpecialChar TeX
8430
8431 \family default
8432  as well as a couple added by \SpecialChar LyX
8433 .
8434  The following environments are shared with other classes:
8435 \end_layout
8436
8437 \begin_layout Standard
8438 \begin_inset Flex Multiple Columns
8439 status open
8440
8441 \begin_layout Itemize
8442
8443 \family sans
8444 Standard
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 Itemize
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 Enumerate
8457 \end_layout
8458
8459 \begin_layout Itemize
8460
8461 \family sans
8462 Description
8463 \end_layout
8464
8465 \begin_layout Itemize
8466
8467 \family sans
8468 List
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 \SpecialChar LyX
8475 -Code
8476 \end_layout
8477
8478 \begin_layout Itemize
8479
8480 \family sans
8481 Verse
8482 \end_layout
8483
8484 \begin_layout Itemize
8485
8486 \family sans
8487 Quote
8488 \end_layout
8489
8490 \begin_layout Itemize
8491
8492 \family sans
8493 Quotation
8494 \end_layout
8495
8496 \begin_layout Itemize
8497
8498 \family sans
8499 TitleAuthor
8500 \end_layout
8501
8502 \begin_layout Itemize
8503
8504 \family sans
8505 Date
8506 \end_layout
8507
8508 \begin_layout Itemize
8509
8510 \family sans
8511 Abstract
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family sans
8517 Bibliography
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family sans
8523 Address
8524 \end_layout
8525
8526 \begin_layout Itemize
8527
8528 \family sans
8529 RightAddress
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Standard
8538 That is, all the major environments apart from the sectioning environments.
8539  Since foils are essentially self-contained sections, with a title and body,
8540  
8541 \family sans
8542 Foil\SpecialChar TeX
8543
8544 \family default
8545  provides specific commands for starting new foils and these are:
8546 \end_layout
8547
8548 \begin_layout Itemize
8549
8550 \family sans
8551 Foilhead
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 Rotatefoilhead
8558 \end_layout
8559
8560 \begin_layout Standard
8561 \SpecialChar LyX
8562  also provides slightly modified versions of these two environments called:
8563 \end_layout
8564
8565 \begin_layout Itemize
8566
8567 \family sans
8568 ShortFoilhead
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family sans
8574 ShortRotatefoilhead
8575 \end_layout
8576
8577 \begin_layout Standard
8578 and the differences will be explained in the next section.
8579 \end_layout
8580
8581 \begin_layout Standard
8582 Since foils are often used in presenting ideas or new theorems and such
8583  
8584 \family sans
8585 Foil\SpecialChar TeX
8586
8587 \family default
8588  also provides a comprehensive box of goodies for presenting them:
8589 \end_layout
8590
8591 \begin_layout Standard
8592 \begin_inset Flex Multiple Columns
8593 status open
8594
8595 \begin_layout Itemize
8596
8597 \family sans
8598 Theorem
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family sans
8604 Lemma
8605 \end_layout
8606
8607 \begin_layout Itemize
8608
8609 \family sans
8610 Corollary
8611 \end_layout
8612
8613 \begin_layout Itemize
8614
8615 \family sans
8616 Proposition
8617 \end_layout
8618
8619 \begin_layout Itemize
8620
8621 \family sans
8622 Definition
8623 \end_layout
8624
8625 \begin_layout Itemize
8626
8627 \family sans
8628 Proof
8629 \end_layout
8630
8631 \begin_layout Itemize
8632
8633 \family sans
8634 Theorem*
8635 \end_layout
8636
8637 \begin_layout Itemize
8638
8639 \family sans
8640 Lemma*
8641 \end_layout
8642
8643 \begin_layout Itemize
8644
8645 \family sans
8646 Corollary*
8647 \end_layout
8648
8649 \begin_layout Itemize
8650
8651 \family sans
8652 Proposition*
8653 \end_layout
8654
8655 \begin_layout Itemize
8656
8657 \family sans
8658 Definition*
8659 \end_layout
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout Standard
8667 The starred versions are unnumbered while the unstarred versions are numbered.
8668  There are also two list environments added by \SpecialChar LyX
8669  and these are:
8670 \end_layout
8671
8672 \begin_layout Itemize
8673
8674 \family sans
8675 TickList
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family sans
8681 CrossList
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \family sans
8687 Foil\SpecialChar TeX
8688
8689 \family default
8690  provides some powerful header and footer capabilities that are best set
8691  in the preamble although they may be set at any point in a document.
8692  If you want to change these settings in your document the best place to
8693  do so is at the very top of a foil, i.
8694 \begin_inset space \thinspace{}
8695 \end_inset
8696
8697 e.
8698 \emph on
8699
8700 \begin_inset space \space{}
8701 \end_inset
8702
8703
8704 \emph default
8705 straight after the foilhead.
8706 \end_layout
8707
8708 \begin_layout Standard
8709 For this purpose, the following command styles are provided [
8710 \shape smallcaps
8711 Martin Vermeer
8712 \shape default
8713 ]:
8714 \end_layout
8715
8716 \begin_layout Standard
8717 \begin_inset Flex Multiple Columns
8718 status open
8719
8720 \begin_layout Itemize
8721
8722 \family sans
8723 My
8724 \begin_inset space ~
8725 \end_inset
8726
8727 Logo
8728 \end_layout
8729
8730 \begin_layout Itemize
8731
8732 \family sans
8733 Restriction
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family sans
8739 Right
8740 \begin_inset space ~
8741 \end_inset
8742
8743 Footer
8744 \end_layout
8745
8746 \begin_layout Itemize
8747
8748 \family sans
8749 Right
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Header
8754 \end_layout
8755
8756 \begin_layout Itemize
8757
8758 \family sans
8759 Left
8760 \begin_inset space ~
8761 \end_inset
8762
8763 Header
8764 \end_layout
8765
8766 \begin_deeper
8767 \begin_layout Plain Layout
8768 \begin_inset space ~
8769 \end_inset
8770
8771
8772 \end_layout
8773
8774 \end_deeper
8775 \end_inset
8776
8777
8778 \end_layout
8779
8780 \begin_layout Standard
8781 There are also a few commands provided by 
8782 \family sans
8783 Foil\SpecialChar TeX
8784
8785 \family default
8786  that aren't directly supported by \SpecialChar LyX
8787  but I'll tell you what they do and how
8788  to use them in section
8789 \begin_inset space ~
8790 \end_inset
8791
8792
8793 \begin_inset CommandInset ref
8794 LatexCommand ref
8795 reference "sec:unsuppfoils"
8796
8797 \end_inset
8798
8799 .
8800 \end_layout
8801
8802 \begin_layout Subsubsection
8803 Building a Set of Foils
8804 \end_layout
8805
8806 \begin_layout Standard
8807 This section will give a simple introduction to using the different environments
8808  to build a set of foils.
8809  If you want to see an example set of foils, take a look at the 
8810 \family typewriter
8811 Foils.lyx
8812 \family default
8813  file you find in \SpecialChar LyX
8814 's 
8815 \family typewriter
8816 examples
8817 \family default
8818  folder.
8819 \end_layout
8820
8821 \begin_layout Paragraph
8822 Give It a Title Page
8823 \end_layout
8824
8825 \begin_layout Standard
8826 Unlike other classes that provide 
8827 \family sans
8828 Title
8829 \family default
8830
8831 \family sans
8832 Author
8833 \family default
8834
8835 \family sans
8836 Date
8837 \family default
8838  and 
8839 \family sans
8840 Abstract
8841 \family default
8842  environments, 
8843 \family sans
8844 foils
8845 \family default
8846  creates the title on a page of its own.
8847  If you leave out the 
8848 \family sans
8849 Date
8850 \family default
8851  environment \SpecialChar LaTeX
8852  will substitute the current date (every time you regenerate
8853  the output).
8854 \end_layout
8855
8856 \begin_layout Paragraph
8857 Start a New Foil
8858 \end_layout
8859
8860 \begin_layout Standard
8861 As I mentioned earlier, there are four ways of starting a new foil.
8862  For portrait foils you should use 
8863 \family sans
8864 Foilhead
8865 \family default
8866  or 
8867 \family sans
8868 ShortFoilhead.
8869
8870 \family default
8871  The difference between these two environments is the amount of space between
8872  the title of the foil (the foilhead) and the body of the foil.
8873 \end_layout
8874
8875 \begin_layout Standard
8876 Landscape foils are generated using the 
8877 \family sans
8878 Rotatefoilhead
8879 \family default
8880  and 
8881 \family sans
8882 ShortRotatefoilhead
8883 \family default
8884  environments.
8885  Again the only difference is the spacing between foilhead and body.
8886  Both of the short versions have 0.5
8887 \begin_inset space ~
8888 \end_inset
8889
8890 inches less separation between the foilhead and the body.
8891  
8892 \end_layout
8893
8894 \begin_layout Standard
8895 One problem with the support for landscape foils is the requirement that
8896  you have to use the 
8897 \family typewriter
8898 dvips
8899 \family default
8900  driver to generate the PostScript output otherwise the foils won't be rotated.
8901  It is possible to get landscape foils even if you haven't got the 
8902 \family typewriter
8903 dvips
8904 \family default
8905  driver provided you can feed your foils sideways through your printer ;-)
8906 \end_layout
8907
8908 \begin_layout Paragraph
8909 Theorems, Lemmas, Proofs and more
8910 \end_layout
8911
8912 \begin_layout Standard
8913 You can't have two of the same type of these environments directly following
8914  each other.
8915  If you use a normal paragraph break, , you will just be extending the previous
8916  environment as if you had merged the two environments together.
8917  Rather than that, you need to insert a so-called separator.
8918  Please refer to the section entitled 
8919 \emph on
8920 Separate Nestings
8921 \emph default
8922  in the 
8923 \emph on
8924 User's Guide
8925 \emph default
8926 .
8927 \end_layout
8928
8929 \begin_layout Paragraph
8930 Lists
8931 \end_layout
8932
8933 \begin_layout Standard
8934 You get all the commonly supported list styles found in other classes as
8935  well as two new ones.
8936  I'll only describe the new ones here.
8937  If you want to find out more about the other list environments check out
8938  the 
8939 \emph on
8940 User's Guide.
8941
8942 \emph default
8943  If you intend to use itemized lists you might also want to read about the
8944  
8945 \family sans
8946 Itemize
8947 \begin_inset space ~
8948 \end_inset
8949
8950 Bullet
8951 \begin_inset space ~
8952 \end_inset
8953
8954 Selection
8955 \family default
8956  dialog described above in section
8957 \begin_inset space ~
8958 \end_inset
8959
8960
8961 \begin_inset CommandInset ref
8962 LatexCommand ref
8963 reference "sec:bullet"
8964
8965 \end_inset
8966
8967 .
8968 \end_layout
8969
8970 \begin_layout Standard
8971 The two new list styles, 
8972 \family sans
8973 TickList
8974 \family default
8975  and 
8976 \family sans
8977 CrossList
8978 \family default
8979 , are designed to make it easier for you to create lists of do's and don'ts
8980  or right and wrong by providing dedicated environments that use a tick
8981  or a cross as the label of the list.
8982  These lists are in fact dedicated variants of the 
8983 \family sans
8984 Itemize
8985 \family default
8986  environment.
8987  They do however require that you have the 
8988 \family typewriter
8989 psnfss
8990 \family default
8991  packages installed.
8992 \end_layout
8993
8994 \begin_layout Paragraph
8995 Figures and Tables
8996 \end_layout
8997
8998 \begin_layout Standard
8999
9000 \family sans
9001 Foil\SpecialChar TeX
9002
9003 \family default
9004  redefines the floating tables and figures so that they appear exactly where
9005  they are in the text rather than pushing them to the top of the page or
9006  to some user specified location.
9007  In fact if you change the float placement settings they are simply ignored.
9008 \end_layout
9009
9010 \begin_layout Paragraph
9011 Page Headers and Footers
9012 \begin_inset CommandInset label
9013 LatexCommand label
9014 name "sec:foilfoot"
9015
9016 \end_inset
9017
9018
9019 \end_layout
9020
9021 \begin_layout Standard
9022
9023 \family sans
9024 My
9025 \begin_inset space ~
9026 \end_inset
9027
9028 Logo
9029 \family default
9030  and 
9031 \family sans
9032 Restriction
9033 \family default
9034  are two commands used to control the left-footer text string.
9035  The first is meant to allow you to include a graphic logo on your foils
9036  and defaults to 
9037 \begin_inset Quotes eld
9038 \end_inset
9039
9040 -Typeset by 
9041 \family sans
9042 Foil\SpecialChar TeX
9043
9044 \family default
9045 -
9046 \begin_inset Quotes erd
9047 \end_inset
9048
9049 .
9050  While the second is meant to provide a classification for the audience,
9051  
9052 \emph on
9053 e.
9054 \begin_inset space \thinspace{}
9055 \end_inset
9056
9057 g.
9058 \emph default
9059
9060 \begin_inset space \space{}
9061 \end_inset
9062
9063 Confidential.
9064  It is empty by default.
9065 \end_layout
9066
9067 \begin_layout Standard
9068 The remaining page corners can be filled by 
9069 \family sans
9070 Right
9071 \begin_inset space ~
9072 \end_inset
9073
9074 Footer
9075 \family default
9076  (which defaults to page numbers), 
9077 \family sans
9078 Right
9079 \begin_inset space ~
9080 \end_inset
9081
9082 Header
9083 \family default
9084  (top right) and 
9085 \family sans
9086 Left
9087 \begin_inset space ~
9088 \end_inset
9089
9090 Header
9091 \family default
9092  (top left).
9093 \end_layout
9094
9095 \begin_layout Subsubsection
9096 Unsupported 
9097 \family sans
9098 Foil\SpecialChar TeX
9099
9100 \family default
9101  Goodies
9102 \begin_inset CommandInset label
9103 LatexCommand label
9104 name "sec:unsuppfoils"
9105
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Standard
9112 All the commands mentioned below need to be set in a 
9113 \family sans
9114 \SpecialChar LaTeX
9115
9116 \family default
9117  environment or as 
9118 \family sans
9119 \SpecialChar TeX
9120
9121 \family default
9122  within another environment.
9123 \end_layout
9124
9125 \begin_layout Paragraph
9126 Lengths
9127 \end_layout
9128
9129 \begin_layout Standard
9130 All lengths are adjusted using the 
9131 \family typewriter
9132
9133 \backslash
9134 setlength{
9135 \family default
9136 \emph on
9137 lengthname
9138 \family typewriter
9139 \emph default
9140 }{
9141 \family default
9142 \emph on
9143 newlength
9144 \family typewriter
9145 \emph default
9146 }
9147 \family default
9148  command.
9149  Where 
9150 \emph on
9151 lengthname
9152 \emph default
9153  should be replaced by the name given to the length you want to change and
9154  
9155 \emph on
9156 newlength
9157 \emph default
9158  is the length value.
9159  All lengths should be specified in units of length such as inches (
9160 \family typewriter
9161 in
9162 \family default
9163 ), millimeters (
9164 \family typewriter
9165 mm
9166 \family default
9167 ) or points (
9168 \family typewriter
9169 pt
9170 \family default
9171 ) or relative to some document or font-based length such as 
9172 \family typewriter
9173
9174 \backslash
9175 textwidth
9176 \family default
9177 .
9178  
9179 \end_layout
9180
9181 \begin_layout Standard
9182 It's possible to change the spacing between a foilhead and the body of the
9183  foil by adjusting the length specified by 
9184 \family typewriter
9185
9186 \backslash
9187 foilheadskip
9188 \family default
9189 .
9190  For example, to make 
9191 \emph on
9192 all
9193 \emph default
9194  foilheads 0.5
9195 \begin_inset space \space{}
9196 \end_inset
9197
9198 in closer to their bodies put the following in the preamble: 
9199 \family typewriter
9200
9201 \backslash
9202 setlength{
9203 \backslash
9204 foilheadskip}{-0.5in}
9205 \end_layout
9206
9207 \begin_layout Standard
9208 The spacings around floats can be adjusted by setting these lengths:
9209 \end_layout
9210
9211 \begin_layout Labeling
9212 \labelwidthstring MMMMMMMMMMM
9213
9214 \family typewriter
9215
9216 \backslash
9217 abovefloatskip
9218 \family default
9219  Separation between the text and the top of the float
9220 \end_layout
9221
9222 \begin_layout Labeling
9223 \labelwidthstring MMMMMMMMMMM
9224
9225 \family typewriter
9226
9227 \backslash
9228 abovecaptionskip
9229 \family default
9230  Separation between the float and the caption
9231 \end_layout
9232
9233 \begin_layout Labeling
9234 \labelwidthstring MMMMMMMMMMM
9235
9236 \family typewriter
9237
9238 \backslash
9239 belowcaptionskip
9240 \family default
9241  Separation between the caption and the following text
9242 \end_layout
9243
9244 \begin_layout Labeling
9245 \labelwidthstring MMMMMMMMMMM
9246
9247 \family typewriter
9248
9249 \backslash
9250 captionwidth
9251 \family default
9252  You can make the captions narrower than the surrounding text by adjusting
9253  this length.
9254  Best done relative to 
9255 \family typewriter
9256
9257 \backslash
9258 textwidth
9259 \family default
9260 .
9261 \end_layout
9262
9263 \begin_layout Standard
9264 There are also several title page related lengths that you may find useful
9265  if you have a long title or several authors:
9266 \end_layout
9267
9268 \begin_layout Labeling
9269 \labelwidthstring MMMMMMMMMMM
9270
9271 \family typewriter
9272
9273 \backslash
9274 abovetitleskip
9275 \family default
9276  Separation from headers to 
9277 \family sans
9278 Title
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMMMMMM
9283
9284 \family typewriter
9285
9286 \backslash
9287 titleauthorskip
9288 \family default
9289  between 
9290 \family sans
9291 Title
9292 \family default
9293  and 
9294 \family sans
9295 Author
9296 \family default
9297  environments
9298 \end_layout
9299
9300 \begin_layout Labeling
9301 \labelwidthstring MMMMMMMMMMM
9302
9303 \family typewriter
9304
9305 \backslash
9306 authorauthorskip
9307 \family default
9308  between multiple 
9309 \family sans
9310 Author
9311 \family default
9312  lines
9313 \end_layout
9314
9315 \begin_layout Labeling
9316 \labelwidthstring MMMMMMMMMMM
9317
9318 \family typewriter
9319
9320 \backslash
9321 authordateskip
9322 \family default
9323  between the 
9324 \family sans
9325 Author
9326 \family default
9327  and the 
9328 \family sans
9329 Date
9330 \end_layout
9331
9332 \begin_layout Labeling
9333 \labelwidthstring MMMMMMMMMMM
9334
9335 \family typewriter
9336
9337 \backslash
9338 dateabstractskip
9339 \family default
9340  between the 
9341 \family sans
9342 Date
9343 \family default
9344  and the 
9345 \family sans
9346 Abstract
9347 \end_layout
9348
9349 \begin_layout Standard
9350 The last length related command affects all the list environments.
9351  If you place 
9352 \family typewriter
9353
9354 \backslash
9355 zerolistvertdimens
9356 \family default
9357  
9358 \emph on
9359 inside
9360 \emph default
9361  a list environment then all the vertical spacing between the list items
9362  is removed.
9363  Note that this is a command not a length so it doesn't require 
9364 \family typewriter
9365
9366 \backslash
9367 setlength
9368 \family default
9369  like the stuff mentioned above.
9370 \end_layout
9371
9372 \begin_layout Paragraph
9373 Headers and Footers
9374 \end_layout
9375
9376 \begin_layout Standard
9377 The 
9378 \family typewriter
9379
9380 \backslash
9381 LogoOn
9382 \family default
9383  and 
9384 \family typewriter
9385
9386 \backslash
9387 LogoOff
9388 \family default
9389  commands control whether the logo in the 
9390 \family sans
9391 MyLogo
9392 \family default
9393  definition appear on a given page.
9394  If you put 
9395 \family typewriter
9396
9397 \backslash
9398 LogoOff
9399 \family default
9400  in the preamble then none of the foils will have the logo on them.
9401  If you don't want the logo on a particular page place the 
9402 \family typewriter
9403
9404 \backslash
9405 LogoOff
9406 \family default
9407  directly after the foilhead of that page and the 
9408 \family typewriter
9409
9410 \backslash
9411 LogoOn
9412 \family default
9413  directly after the next foilhead.
9414 \end_layout
9415
9416 \begin_layout Standard
9417 If you decide to use the 
9418 \family sans
9419 fancy
9420 \family default
9421  page style setting in the 
9422 \family sans
9423 Document
9424 \begin_inset space ~
9425 \end_inset
9426
9427 Layout
9428 \family default
9429  dialog you should probably add 
9430 \family typewriter
9431
9432 \backslash
9433 let
9434 \backslash
9435 headwidth
9436 \backslash
9437 textwidth
9438 \family default
9439  to your preamble so headers and footers on landscape pages are correctly
9440  placed when rotated.
9441  This is due to some clashes between the page layouts provided by the 
9442 \family sans
9443 fancyheadings
9444 \family default
9445  package and the 
9446 \family sans
9447 foils
9448 \family default
9449  class.
9450 \end_layout
9451
9452 \begin_layout Subsection
9453 Slides [aka 
9454 \noun on
9455 Sli\SpecialChar TeX
9456
9457 \noun default
9458 ]
9459 \begin_inset CommandInset label
9460 LatexCommand label
9461 name "sec:slitex"
9462
9463 \end_inset
9464
9465
9466 \end_layout
9467
9468 \begin_layout Standard
9469 by 
9470 \noun on
9471 John Weiss
9472 \noun default
9473  
9474 \end_layout
9475
9476 \begin_layout Subsubsection
9477 Introduction
9478 \end_layout
9479
9480 \begin_layout Standard
9481 This section describes how to use \SpecialChar LyX
9482  to make slides for overhead projectors.
9483  There are two document classes that can do this: the default slides class
9484  and the 
9485 \family sans
9486 Foil\SpecialChar TeX
9487
9488 \family default
9489  slides class.
9490  This section documents the former.
9491 \end_layout
9492
9493 \begin_layout Standard
9494 I'm going to say this again, nice and clear, so that there's no misunderstanding
9495 :
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \begin_inset VSpace bigskip
9500 \end_inset
9501
9502
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \align center
9507
9508 \size large
9509 This section documents the class 
9510 \begin_inset Quotes eld
9511 \end_inset
9512
9513
9514 \family sans
9515 slides (default)
9516 \family default
9517
9518 \begin_inset Quotes erd
9519 \end_inset
9520
9521  
9522 \emph on
9523 only.
9524 \end_layout
9525
9526 \begin_layout Standard
9527 \begin_inset VSpace bigskip
9528 \end_inset
9529
9530
9531 \end_layout
9532
9533 \begin_layout Standard
9534 If you're looking for the documentation for 
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538
9539 \family sans
9540 slides (Foil\SpecialChar TeX
9541 )
9542 \family default
9543
9544 \begin_inset Quotes erd
9545 \end_inset
9546
9547 , check out section
9548 \begin_inset space ~
9549 \end_inset
9550
9551
9552 \begin_inset CommandInset ref
9553 LatexCommand ref
9554 reference "sec:foiltex"
9555
9556 \end_inset
9557
9558 .
9559  The 
9560 \family sans
9561 foils
9562 \family default
9563  class [
9564 \begin_inset Quotes eld
9565 \end_inset
9566
9567
9568 \family sans
9569 slides (Foil\SpecialChar TeX
9570 )
9571 \family default
9572
9573 \begin_inset Quotes erd
9574 \end_inset
9575
9576 ] is actually somewhat better than the default 
9577 \family sans
9578 slides
9579 \family default
9580  class,
9581 \begin_inset Foot
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 \SpecialChar ldots
9586 or so I've been told repeatedly by its advocates.
9587  Having never used it, I have no idea if this claim is true or not.
9588 \end_layout
9589
9590 \end_inset
9591
9592  which this section documents.
9593 \end_layout
9594
9595 \begin_layout Standard
9596 This class is the \SpecialChar LaTeX2e
9597  improvement of the old 
9598 \noun on
9599 Sli\SpecialChar TeX
9600
9601 \noun default
9602  package.
9603  Every \SpecialChar LaTeX2e
9604  distribution includes this class [which I'll just refer to as 
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608
9609 \family sans
9610 slides
9611 \family default
9612
9613 \begin_inset Quotes erd
9614 \end_inset
9615
9616  from now on], so you're bound to have it.
9617  As I noted earlier, there are other classes, such as 
9618 \family sans
9619 foils
9620 \family default
9621 , which also produce slides for overhead projectors and do a better job
9622  at it.
9623  However, there are some things which 
9624 \family sans
9625 slides
9626 \family default
9627  can do which the others can't, such as generate overlays.
9628  Read on to learn more!
9629 \end_layout
9630
9631 \begin_layout Subsubsection
9632 Getting Started
9633 \begin_inset CommandInset label
9634 LatexCommand label
9635 name "sec:slidesetup"
9636
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 Obviously, to use this document class, you need to select 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \family sans
9649 slides (default)
9650 \family default
9651
9652 \begin_inset Quotes erd
9653 \end_inset
9654
9655  from the class list in the 
9656 \family sans
9657 Document\SpecialChar menuseparator
9658 Settings
9659 \family default
9660  dialog.
9661  There are some other special things you should know about this class:
9662 \end_layout
9663
9664 \begin_layout Itemize
9665 Don't bother changing the options 
9666 \family sans
9667 Sides and Columns
9668 \family default
9669 .
9670  They're not supported by the 
9671 \family sans
9672 slides
9673 \family default
9674  class, anyways.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678 The option 
9679 \family sans
9680 Page
9681 \begin_inset space ~
9682 \end_inset
9683
9684 style
9685 \family default
9686  behaves a bit differently for this class.
9687  The possible choices and what they do are as follows:
9688 \end_layout
9689
9690 \begin_deeper
9691 \begin_layout Description
9692
9693 \family sans
9694 plain
9695 \family default
9696  The final output contains page numbers in the lower right corner.
9697 \end_layout
9698
9699 \begin_layout Description
9700
9701 \family sans
9702 headings
9703 \family default
9704  Like 
9705 \family sans
9706 plain
9707 \family default
9708 , but also prints out any time markers you've put in.
9709  This is the default.
9710 \end_layout
9711
9712 \begin_layout Description
9713
9714 \family sans
9715 empty
9716 \family default
9717  The final output contains no page numbers, time markers, or alignment markers.
9718 \end_layout
9719
9720 \end_deeper
9721 \begin_layout Itemize
9722 The 
9723 \family sans
9724 slides
9725 \family default
9726  class has an extra option: 
9727 \family typewriter
9728 clock
9729 \family default
9730 .
9731  To use it, put 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735
9736 \family typewriter
9737 clock
9738 \family default
9739
9740 \begin_inset Quotes erd
9741 \end_inset
9742
9743  in the extra class options.
9744 \end_layout
9745
9746 \begin_deeper
9747 \begin_layout Standard
9748 Using this options allows you to add time markers to 
9749 \family sans
9750 Note
9751 \family default
9752 s.
9753  See section
9754 \begin_inset space ~
9755 \end_inset
9756
9757
9758 \begin_inset CommandInset ref
9759 LatexCommand ref
9760 reference "sec:slideNote"
9761
9762 \end_inset
9763
9764  for more details.
9765 \end_layout
9766
9767 \end_deeper
9768 \begin_layout Standard
9769 You can also use the template file 
9770 \begin_inset Quotes eld
9771 \end_inset
9772
9773
9774 \family typewriter
9775 slides.lyx
9776 \family default
9777
9778 \begin_inset Quotes erd
9779 \end_inset
9780
9781  to automatically set up a document to use the 
9782 \family sans
9783 slides
9784 \family default
9785  class [using 
9786 \family sans
9787 File\SpecialChar menuseparator
9788 New
9789 \begin_inset space ~
9790 \end_inset
9791
9792 from
9793 \begin_inset space ~
9794 \end_inset
9795
9796 Template
9797 \family default
9798  to open your new document].
9799  The template file also contains some examples of the special paragraph
9800  environments used by this class.
9801  I'll describe those next.
9802 \end_layout
9803
9804 \begin_layout Subsubsection
9805 Paragraph Environments
9806 \end_layout
9807
9808 \begin_layout Paragraph
9809 Supported Environments
9810 \end_layout
9811
9812 \begin_layout Standard
9813 The first thing you'll notice when you start up a new 
9814 \family sans
9815 slides
9816 \family default
9817  document is the font size and type: it's the equivalent of the size 
9818 \begin_inset Quotes eld
9819 \end_inset
9820
9821
9822 \family sans
9823 Largest
9824 \family default
9825
9826 \begin_inset Quotes erd
9827 \end_inset
9828
9829  in the 
9830 \family sans
9831 Sans
9832 \begin_inset space ~
9833 \end_inset
9834
9835 Serif
9836 \family default
9837  font.
9838  This is also what's used in the output.
9839  Think of this as a 
9840 \begin_inset Quotes eld
9841 \end_inset
9842
9843 visual cue
9844 \begin_inset Quotes erd
9845 \end_inset
9846
9847  to remind you that this is a slide.
9848  Your final slides will use a larger font; ergo, you'll have less space.
9849  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9850 \end_layout
9851
9852 \begin_layout Standard
9853 The next thing that becomes obvious is the changes to the paragraph environment
9854  pull-down box [at the far-left end of the toolbar].
9855  Most of the paragraph environments you're used to seeing are missing.
9856  There are also five new ones.
9857  That's because the 
9858 \family sans
9859 slides
9860 \family default
9861  class itself only supports certain paragraph environments:
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family sans
9867 Standard
9868 \end_layout
9869
9870 \begin_layout Itemize
9871
9872 \family sans
9873 Itemize
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Enumerate
9880 \end_layout
9881
9882 \begin_layout Itemize
9883
9884 \family sans
9885 Description
9886 \end_layout
9887
9888 \begin_layout Itemize
9889
9890 \family sans
9891 List
9892 \end_layout
9893
9894 \begin_layout Itemize
9895
9896 \family sans
9897 Quotation
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \family sans
9903 Quote
9904 \end_layout
9905
9906 \begin_layout Itemize
9907
9908 \family sans
9909 Verse
9910 \end_layout
9911
9912 \begin_layout Itemize
9913
9914 \family sans
9915 Caption
9916 \end_layout
9917
9918 \begin_layout Itemize
9919
9920 \family sans
9921 \SpecialChar LyX
9922 -Code
9923 \end_layout
9924
9925 \begin_layout Standard
9926 All of the other standard environments, including the section-heading environmen
9927 ts, aren't used in the 
9928 \family sans
9929 slides
9930 \family default
9931  class.
9932 \end_layout
9933
9934 \begin_layout Standard
9935 On the other hand, you'll notice the following new environments:
9936 \end_layout
9937
9938 \begin_layout Itemize
9939
9940 \family sans
9941 Slide
9942 \end_layout
9943
9944 \begin_layout Itemize
9945
9946 \family sans
9947 Overlay
9948 \end_layout
9949
9950 \begin_layout Itemize
9951
9952 \family sans
9953 Note
9954 \end_layout
9955
9956 \begin_layout Itemize
9957
9958 \family sans
9959 InvisibleText
9960 \end_layout
9961
9962 \begin_layout Itemize
9963
9964 \family sans
9965 VisibleText
9966 \end_layout
9967
9968 \begin_layout Standard
9969 These five are kind of quirky, due to a 
9970 \begin_inset Quotes eld
9971 \end_inset
9972
9973 feature
9974 \begin_inset Quotes erd
9975 \end_inset
9976
9977  in \SpecialChar LyX
9978 .
9979  You see, \SpecialChar LyX
9980  doesn't permit you to nest any other paragraph environment into
9981  an empty environment.
9982  Now, that's fine and dandy, but it means that you wouldn't be able to start
9983  a slide with anything except plain text.
9984  To deal with this, I've performed a little 
9985 \begin_inset Quotes eld
9986 \end_inset
9987
9988 \SpecialChar LaTeX
9989  magic.
9990 \begin_inset Quotes erd
9991 \end_inset
9992
9993  
9994 \end_layout
9995
9996 \begin_layout Paragraph
9997 Quirks of the New Environments
9998 \begin_inset CommandInset label
9999 LatexCommand label
10000 name "sec:slideQuirk"
10001
10002 \end_inset
10003
10004
10005 \end_layout
10006
10007 \begin_layout Standard
10008 All five of the new paragraph environments are somewhat quirky due to inherent
10009  limitiations in the current version of \SpecialChar LyX
10010 .
10011  As I just mentioned, \SpecialChar LyX
10012  forbids environments that begin with another environment.
10013  To get around this, the 
10014 \family sans
10015 Slide
10016 \family default
10017  environment isn't a paragraph environment as described in the 
10018 \emph on
10019 User's Guide
10020 \emph default
10021 .
10022  
10023 \end_layout
10024
10025 \begin_layout Standard
10026 You should consider 
10027 \family sans
10028 Slide
10029 \family default
10030
10031 \family sans
10032 Overlay
10033 \family default
10034 , and 
10035 \family sans
10036 Note
10037 \family default
10038  to be 
10039 \begin_inset Quotes eld
10040 \end_inset
10041
10042 pseudo-environments.
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046  They look like a section heading or a 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \family sans
10052 Caption
10053 \family default
10054 ,
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058  but really begin a [and, if necessary, end the previous] paragraph environment.
10059  Likewise, treat 
10060 \family sans
10061 InvisibleText
10062 \family default
10063  and 
10064 \family sans
10065 VisibleText
10066 \family default
10067  as 
10068 \begin_inset Quotes eld
10069 \end_inset
10070
10071 pseudo-commands.
10072 \begin_inset Quotes erd
10073 \end_inset
10074
10075  These two perform some action.
10076 \end_layout
10077
10078 \begin_layout Standard
10079 A common feature of all five environments, 
10080 \family sans
10081 Slide
10082 \family default
10083
10084 \family sans
10085 Overlay
10086 \family default
10087
10088 \family sans
10089 Note
10090 \family default
10091
10092 \family sans
10093 InvisibleText
10094 \family default
10095  and 
10096 \family sans
10097 VisibleText
10098 \family default
10099 , is a rather long-ish label.
10100  The text following this label — ordinarily the contents of the paragraph
10101  environment — is utterly irrelevant for 
10102 \family sans
10103 Slide
10104 \family default
10105
10106 \family sans
10107 Overlay
10108 \family default
10109
10110 \family sans
10111 Note
10112 \family default
10113
10114 \family sans
10115 InvisibleText
10116 \family default
10117  and 
10118 \family sans
10119 VisibleText
10120 \family default
10121 .
10122  \SpecialChar LyX
10123  completely ignores it.
10124  In fact, you can leave these five environments completely empty.
10125  
10126 \end_layout
10127
10128 \begin_layout Standard
10129 While you don't 
10130 \emph on
10131 have
10132 \emph default
10133  to put any text after the rather long-ish label, you might want to.
10134  This could be a short description of the contents of the 
10135 \family sans
10136 Slide
10137 \family default
10138 , for example.
10139  In that case, enter your descriptive comment and hit 
10140 \family sans
10141 Return
10142 \family default
10143  as you normally would.
10144 \end_layout
10145
10146 \begin_layout Standard
10147 If, on the other hand, you don't want to enter any descriptive text, you'll
10148  hit another \SpecialChar LyX
10149  quirk.
10150  \SpecialChar LyX
10151 , like nature, abhors a vacuum, and will not let you start a new paragraph
10152  environment until you put something in the old one.
10153  So, do this:
10154 \end_layout
10155
10156 \begin_layout Itemize
10157 Start entering the text that will 
10158 \emph on
10159 follow
10160 \emph default
10161  the new 
10162 \family sans
10163 Slide
10164 \family default
10165
10166 \family sans
10167 Overlay
10168 \family default
10169
10170 \family sans
10171 Note
10172 \family default
10173
10174 \family sans
10175 InvisibleText
10176 \family default
10177  or 
10178 \family sans
10179 VisibleText
10180 \family default
10181 .
10182  
10183 \end_layout
10184
10185 \begin_layout Itemize
10186 Now move to the beginning of that paragraph.
10187  
10188 \end_layout
10189
10190 \begin_layout Itemize
10191 Next, hit 
10192 \family sans
10193 Return
10194 \family default
10195 .
10196  
10197 \end_layout
10198
10199 \begin_layout Itemize
10200 Finally, change this new, empty paragraph to a 
10201 \family sans
10202 Slide
10203 \family default
10204
10205 \family sans
10206 Overlay
10207 \family default
10208
10209 \family sans
10210 Note
10211 \family default
10212
10213 \family sans
10214 InvisibleText
10215 \family default
10216  or 
10217 \family sans
10218 VisibleText
10219 \family default
10220 .
10221  
10222 \end_layout
10223
10224 \begin_layout Standard
10225 Some future version of \SpecialChar LyX
10226  will, hopefully, resolve this quirkiness\SpecialChar ldots
10227
10228 \end_layout
10229
10230 \begin_layout Subsubsection
10231 Making a Presentation with 
10232 \family sans
10233 Slide
10234 \family default
10235
10236 \family sans
10237 Overlay
10238 \family default
10239  and 
10240 \family sans
10241 Note
10242 \end_layout
10243
10244 \begin_layout Paragraph
10245 Using the 
10246 \family sans
10247 Slide
10248 \family default
10249  Environment
10250 \end_layout
10251
10252 \begin_layout Standard
10253 If you're expecting this section to teach you how to actually make a presentatio
10254 n, you'll be sorely disappointed.
10255  Naturally, I'll describe all of the ways the 
10256 \family sans
10257 slides
10258 \family default
10259  class can assist you in preparing the materials for a presentation.
10260  Filling in the contents, however, is up to you.
10261  [Then again, that 
10262 \emph on
10263 is
10264 \emph default
10265  the \SpecialChar LyX
10266  philosophy.]
10267 \end_layout
10268
10269 \begin_layout Standard
10270 Choosing the 
10271 \family sans
10272 Slide
10273 \family default
10274  environment [in the manner described in section
10275 \begin_inset space ~
10276 \end_inset
10277
10278
10279 \begin_inset CommandInset ref
10280 LatexCommand ref
10281 reference "sec:slideQuirk"
10282
10283 \end_inset
10284
10285 ] tells \SpecialChar LyX
10286  to begin a new slide [duh].
10287  The label for this environment/
10288 \begin_inset Quotes erd
10289 \end_inset
10290
10291 pseudo-command
10292 \begin_inset Quotes erd
10293 \end_inset
10294
10295  is an 
10296 \begin_inset Quotes eld
10297 \end_inset
10298
10299 ASCII line,
10300 \begin_inset Quotes erd
10301 \end_inset
10302
10303  in cool blue, followed by the label, 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307 NewSlide:
10308 \begin_inset Quotes erd
10309 \end_inset
10310
10311 .
10312  Any text or paragraph environments that follow this one go on the new slide.
10313  It's that simple.
10314 \end_layout
10315
10316 \begin_layout Standard
10317 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10318
10319  (this can be specified in the 
10320 \family sans
10321 Paragraph Layout
10322 \family default
10323  dialog).
10324  In fact, you'll want to, once you finish entering the contents of one slide.
10325  If you've entered more text than can physically fit on a slide, the extra
10326  overflows onto a new slide.
10327  I don't recommend doing this, however, since the overflow slide won't have
10328  any page number on it.
10329  Furthermore, it may interfere with any 
10330 \family sans
10331 Overlay
10332 \family default
10333  you've made to accompany the oversized 
10334 \family sans
10335 Slide
10336 \family default
10337 .
10338 \end_layout
10339
10340 \begin_layout Standard
10341 The 
10342 \family sans
10343 Overlay
10344 \family default
10345  and 
10346 \family sans
10347 Note
10348 \family default
10349  environments work the same way as the 
10350 \family sans
10351 Slide
10352 \family default
10353  environment.
10354  They both create an 
10355 \begin_inset Quotes eld
10356 \end_inset
10357
10358 ASCII line
10359 \begin_inset Quotes erd
10360 \end_inset
10361
10362  followed by a label [
10363 \begin_inset Quotes eld
10364 \end_inset
10365
10366 NewOverlay:
10367 \begin_inset Quotes erd
10368 \end_inset
10369
10370  and 
10371 \begin_inset Quotes eld
10372 \end_inset
10373
10374 NewNote:
10375 \begin_inset Quotes erd
10376 \end_inset
10377
10378 , respectively].
10379  The color is a stunning magenta instead of blue, and the 
10380 \begin_inset Quotes eld
10381 \end_inset
10382
10383 ASCII line
10384 \begin_inset Quotes erd
10385 \end_inset
10386
10387  will look different, in style and in length.
10388  The label fonts of all three also differ from one another.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 As with a 
10393 \family sans
10394 Slide
10395 \family default
10396 , if the contents of a 
10397 \family sans
10398 Note
10399 \family default
10400  or 
10401 \family sans
10402 Overlay
10403 \family default
10404  exceed the physical size of a slide or sheet of paper, the extra will overflow
10405  onto a new sheet.
10406  Again, you should avoid this.
10407  It defeats the whole purpose of 
10408 \family sans
10409 Note
10410 \family default
10411 s and 
10412 \family sans
10413 Overlay
10414 \family default
10415 s.
10416 \end_layout
10417
10418 \begin_layout Paragraph
10419 Using 
10420 \family sans
10421 Overlay
10422 \family default
10423  with 
10424 \family sans
10425 Slide
10426 \end_layout
10427
10428 \begin_layout Standard
10429 The idea behind an 
10430 \family sans
10431 Overlay
10432 \family default
10433  is a slide that sits atop another slide.
10434  Perhaps you wish to discuss a figure on the main 
10435 \family sans
10436 Slide
10437 \family default
10438  before displaying the text associated with it.
10439  One way to accomplish this is tape a flap of dark paper over the part of
10440  the 
10441 \family sans
10442 Slide
10443 \family default
10444  you want to display later.
10445  This method fails, however, if you wish to overlap one graph with another,
10446  for example.
10447  You would then have to fumble while speaking to align the two separate,
10448  overlapping 
10449 \family sans
10450 Slide
10451 \family default
10452 s to align the two graphs.
10453  The use of an 
10454 \family sans
10455 Overlay
10456 \family default
10457  environment in both cases makes life much easier.
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Each 
10462 \family sans
10463 Overlay
10464 \family default
10465  receives the page number of its 
10466 \begin_inset Quotes eld
10467 \end_inset
10468
10469 parent
10470 \begin_inset Quotes erd
10471 \end_inset
10472
10473  
10474 \family sans
10475 Slide
10476 \family default
10477 , appended by 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \family typewriter
10483 -a
10484 \family default
10485
10486 \begin_inset Quotes erd
10487 \end_inset
10488
10489 .
10490 \begin_inset Foot
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 Presumably, mutliple 
10495 \family sans
10496 Overlay
10497 \family default
10498 s would have 
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \family typewriter
10504 -a
10505 \family default
10506
10507 \begin_inset Quotes erd
10508 \end_inset
10509
10510
10511 \begin_inset Quotes eld
10512 \end_inset
10513
10514
10515 \family typewriter
10516 -b
10517 \family default
10518
10519 \begin_inset Quotes erd
10520 \end_inset
10521
10522
10523 \begin_inset Quotes eld
10524 \end_inset
10525
10526
10527 \family typewriter
10528 -c
10529 \family default
10530
10531 \begin_inset Quotes erd
10532 \end_inset
10533
10534 , etc.
10535 \begin_inset space ~
10536 \end_inset
10537
10538 appended to the page number of the parent 
10539 \family sans
10540 Slide
10541 \family default
10542 .
10543  
10544 \end_layout
10545
10546 \end_inset
10547
10548  Clearly, you want the contents of both the 
10549 \family sans
10550 Slide
10551 \family default
10552  and the 
10553 \family sans
10554 Overlay
10555 \family default
10556  to each fit on a single physical slide! You should probably consider an
10557  
10558 \family sans
10559 Overlay
10560 \family default
10561  as 
10562 \begin_inset Quotes eld
10563 \end_inset
10564
10565 part of
10566 \begin_inset Quotes erd
10567 \end_inset
10568
10569  a 
10570 \family sans
10571 Slide
10572 \family default
10573 .
10574  Indeed, the \SpecialChar LyX
10575  
10576 \family sans
10577 slides
10578 \family default
10579  class provides a visual cue for this: the label at the start of an 
10580 \family sans
10581 Overlay
10582 \family default
10583  is shorter than that at the start of a 
10584 \family sans
10585 Slide
10586 \family default
10587 .
10588  Lastly, when you generate printable output, you'll find alignment markers
10589  in all four corners of both the 
10590 \family sans
10591 Overlay
10592 \family default
10593  page and its parent 
10594 \family sans
10595 Slide
10596 \family default
10597 .
10598  These will assist you in lining up the two physical slides.
10599 \end_layout
10600
10601 \begin_layout Standard
10602 The major problem in overlaying two slides is aligning the contents of the
10603  two transparencies.
10604  How much space should you leave for that graph on the second slide? Worse
10605  still, what if you want a graph and a sentence on second slide, but there
10606  is text on the main transparency that goes in between them? You could try
10607  and insert vertical space of the right size.
10608  The better way is to use 
10609 \family sans
10610 InvisibleText
10611 \family default
10612  and 
10613 \family sans
10614 VisibleText
10615 \family default
10616 .
10617 \end_layout
10618
10619 \begin_layout Standard
10620 As their names imply, 
10621 \family sans
10622 InvisibleText
10623 \family default
10624  and 
10625 \family sans
10626 VisibleText
10627 \family default
10628  are two command-like paragraph environments that make all subsequent text
10629  invisible and visible, respectively.
10630  Note from section
10631 \begin_inset space ~
10632 \end_inset
10633
10634
10635 \begin_inset CommandInset ref
10636 LatexCommand ref
10637 reference "sec:slideQuirk"
10638
10639 \end_inset
10640
10641  that you don't place anything 
10642 \emph on
10643 into
10644 \emph default
10645  these two environments, however.
10646  When you create an 
10647 \family sans
10648 InvisibleText
10649 \family default
10650 , it inserts a centered, sky-blue label into the page reading 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654 <Invisible Text Follows>
10655 \begin_inset Quotes erd
10656 \end_inset
10657
10658 .
10659  For paragraphs following this label, the parts of the 
10660 \family sans
10661 Slide
10662 \family default
10663  [or 
10664 \family sans
10665 Overlay
10666 \family default
10667 ; it doesn't matter which] where they would be contain instead blank space.
10668  
10669 \end_layout
10670
10671 \begin_layout Standard
10672 For 
10673 \family sans
10674 VisibleText
10675 \family default
10676 , the corresponding centered label is 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680 <Visible Text Follows>
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684  in blazing green.
10685  Paragraphs following this label behave normally.
10686  Note that the beginning of a new 
10687 \family sans
10688 Slide
10689 \family default
10690
10691 \family sans
10692 Overlay
10693 \family default
10694 , or 
10695 \family sans
10696 Note
10697 \family default
10698  automatically shuts off an 
10699 \family sans
10700 InvisibleText
10701 \family default
10702 .
10703  It's therefore not necessary to use 
10704 \family sans
10705 VisibleText
10706 \family default
10707  at the end of a 
10708 \family sans
10709 Slide
10710 \family default
10711 .
10712 \end_layout
10713
10714 \begin_layout Standard
10715 By now, it should be obvious how to create overlay transparencies using
10716  the proper combination of 
10717 \family sans
10718 InvisibleText
10719 \family default
10720  and 
10721 \family sans
10722 VisibleText
10723 \family default
10724  on a 
10725 \family sans
10726 Slide
10727 \family default
10728  and 
10729 \family sans
10730 Overlay
10731 \family default
10732 :
10733 \end_layout
10734
10735 \begin_layout Enumerate
10736 Create a 
10737 \family sans
10738 Slide
10739 \family default
10740 , including everything that will appear on it, whether on the main slide
10741  or on the 
10742 \family sans
10743 Overlay
10744 \family default
10745 .
10746 \end_layout
10747
10748 \begin_layout Enumerate
10749 Before each figure or paragraph that will appear only on the 
10750 \family sans
10751 Overlay
10752 \family default
10753 , insert an 
10754 \family sans
10755 InvisibleText
10756 \family default
10757  environment.
10758  If necessary, insert a 
10759 \family sans
10760 VisibleText
10761 \family default
10762  environment after the 
10763 \family sans
10764 Overlay
10765 \family default
10766 -only text.
10767 \end_layout
10768
10769 \begin_layout Enumerate
10770 Start an 
10771 \family sans
10772 Overlay
10773 \family default
10774  immediately following the 
10775 \family sans
10776 Slide
10777 \family default
10778 .
10779 \end_layout
10780
10781 \begin_layout Enumerate
10782 Copy the contents of this 
10783 \family sans
10784 Slide
10785 \family default
10786  into the 
10787 \family sans
10788 Overlay
10789 \family default
10790 .
10791 \end_layout
10792
10793 \begin_layout Enumerate
10794 Within the 
10795 \family sans
10796 Overlay
10797 \family default
10798 , change all of the 
10799 \family sans
10800 InvisibleText
10801 \family default
10802  lines to 
10803 \family sans
10804 VisibleText
10805 \family default
10806  and vice-versa.
10807 \end_layout
10808
10809 \begin_layout Standard
10810 That's it.
10811  You've just made an 
10812 \family sans
10813 Overlay
10814 \family default
10815 .
10816 \end_layout
10817
10818 \begin_layout Standard
10819 There's one problem with the way I've designed the \SpecialChar LyX
10820  
10821 \family sans
10822 slides
10823 \family default
10824  class: you can't make text in the middle of a paragraph invisible, nor
10825  make text in the middle of an invisible paragraph visible again.
10826  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
10827  codes.
10828 \begin_inset Foot
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 The commands of interest are: 
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family typewriter
10838 {
10839 \backslash
10840 invisible \SpecialChar ldots
10841  }
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family typewriter
10847 {
10848 \backslash
10849 visible \SpecialChar ldots
10850  }
10851 \end_layout
10852
10853 \begin_layout Plain Layout
10854 \SpecialChar ldots
10855 and need to be marked as \SpecialChar TeX
10856 .
10857  The text whose 
10858 \begin_inset Quotes eld
10859 \end_inset
10860
10861 visibility
10862 \begin_inset Quotes erd
10863 \end_inset
10864
10865  you wish to change goes in between the brackets [and after the 
10866 \family typewriter
10867
10868 \backslash
10869 invisible
10870 \family default
10871  or 
10872 \family typewriter
10873
10874 \backslash
10875 visible
10876 \family default
10877  command].
10878  If you don't know how to mark text as \SpecialChar TeX
10879 , see the appropriate section of
10880  the 
10881 \emph on
10882 User's Guide
10883 \emph default
10884 .
10885 \end_layout
10886
10887 \end_inset
10888
10889
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Using 
10894 \family sans
10895 Note
10896 \family default
10897  with 
10898 \family sans
10899 Slide
10900 \family default
10901
10902 \begin_inset CommandInset label
10903 LatexCommand label
10904 name "sec:slideNote"
10905
10906 \end_inset
10907
10908
10909 \end_layout
10910
10911 \begin_layout Standard
10912 Like an 
10913 \family sans
10914 Overlay
10915 \family default
10916 , a 
10917 \family sans
10918 Note
10919 \family default
10920  is associated with a 
10921 \begin_inset Quotes eld
10922 \end_inset
10923
10924 parent
10925 \begin_inset Quotes erd
10926 \end_inset
10927
10928  
10929 \family sans
10930 Slide
10931 \family default
10932 .
10933  Here, too, the \SpecialChar LyX
10934  
10935 \family sans
10936 slides
10937 \family default
10938  class provides visual cues.
10939  The label for a 
10940 \family sans
10941 Note
10942 \family default
10943  is shorter than that of a 
10944 \family sans
10945 Slide
10946 \family default
10947  [yet longer than that of an 
10948 \family sans
10949 Overlay
10950 \family default
10951 ] and, like the label of an 
10952 \family sans
10953 Overlay
10954 \family default
10955  is shockingly magenta.
10956  Additionally, the printed 
10957 \family sans
10958 Note
10959 \family default
10960  has the page number of its 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964 parent
10965 \begin_inset Quotes erd
10966 \end_inset
10967
10968  
10969 \family sans
10970 Slide
10971 \family default
10972 , appended by 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \family typewriter
10978 -
10979 \family default
10980 1
10981 \begin_inset Quotes erd
10982 \end_inset
10983
10984
10985 \begin_inset Quotes eld
10986 \end_inset
10987
10988
10989 \family typewriter
10990 -
10991 \family default
10992 2
10993 \begin_inset Quotes erd
10994 \end_inset
10995
10996
10997 \begin_inset Quotes eld
10998 \end_inset
10999
11000
11001 \family typewriter
11002 -
11003 \family default
11004 3
11005 \begin_inset Quotes erd
11006 \end_inset
11007
11008 , etc.
11009  You can have multiple 
11010 \family sans
11011 Note
11012 \family default
11013 s associated with a single 
11014 \family sans
11015 Slide
11016 \family default
11017 , and, as with 
11018 \family sans
11019 Slide
11020 \family default
11021  and 
11022 \family sans
11023 Overlay
11024 \family default
11025 , you'll probably want to break up long 
11026 \family sans
11027 Note
11028 \family default
11029 s so that they fit on a single sheet of paper.
11030 \end_layout
11031
11032 \begin_layout Standard
11033 The purpose of a 
11034 \family sans
11035 Note
11036 \family default
11037  is obvious: it contains anything additional you might want to say about
11038  a 
11039 \family sans
11040 Slide
11041 \family default
11042 .
11043  It could also be used as a sheet of reminders for a particular 
11044 \family sans
11045 Slide
11046 \family default
11047 .
11048  In the case of the latter, you might want to make use of time markers.
11049  Currently, the \SpecialChar LyX
11050  
11051 \family sans
11052 slides
11053 \family default
11054  class has no 
11055 \begin_inset Quotes eld
11056 \end_inset
11057
11058 native
11059 \begin_inset Quotes erd
11060 \end_inset
11061
11062  support for time markers, a 
11063 \noun on
11064 Sli\SpecialChar TeX
11065
11066 \noun default
11067  feature.
11068  So, you'll have to resort to using the \SpecialChar LaTeX
11069  codes.
11070 \end_layout
11071
11072 \begin_layout Standard
11073 To use time markers, you'll need to specify the extra class option 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077
11078 \family typewriter
11079 clock
11080 \family default
11081
11082 \begin_inset Quotes erd
11083 \end_inset
11084
11085  [see section
11086 \begin_inset space ~
11087 \end_inset
11088
11089
11090 \begin_inset CommandInset ref
11091 LatexCommand ref
11092 reference "sec:slidesetup"
11093
11094 \end_inset
11095
11096 ].
11097  This option turns on timing marks, which will appear in the lower-left-hand
11098  corner of every 
11099 \family sans
11100 Note
11101 \family default
11102  you generate.
11103  To set what appears in the time marker, you use the \SpecialChar LaTeX
11104  commands 
11105 \begin_inset Quotes eld
11106 \end_inset
11107
11108
11109 \family typewriter
11110
11111 \backslash
11112 settime{}
11113 \family default
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118  and 
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family typewriter
11124
11125 \backslash
11126 addtime{}
11127 \family default
11128
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132 .
11133  The arguments of both commands are time measured in seconds.
11134  
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138
11139 \family typewriter
11140
11141 \backslash
11142 settime{}
11143 \family default
11144
11145 \begin_inset Quotes erd
11146 \end_inset
11147
11148  sets the time marker to a given time.
11149  
11150 \begin_inset Quotes eld
11151 \end_inset
11152
11153
11154 \family typewriter
11155
11156 \backslash
11157 addtime{}
11158 \family default
11159
11160 \begin_inset Quotes erd
11161 \end_inset
11162
11163  increments the time marker by the specified amount.
11164  Using time markers and 
11165 \family sans
11166 Note
11167 \family default
11168 s in this fashion, you can remind yourself how much time to spend on a particula
11169
11170 \family sans
11171 Slide
11172 \family default
11173 .
11174 \end_layout
11175
11176 \begin_layout Standard
11177 There's one last feature to describe.
11178  Clearly, you'd like to print out all of your 
11179 \family sans
11180 Slide
11181 \family default
11182 s and 
11183 \family sans
11184 Overlay
11185 \family default
11186 s on transparencies while printing all of your 
11187 \family sans
11188 Note
11189 \family default
11190 s on plain paper.
11191  However, a 
11192 \family sans
11193 Note
11194 \family default
11195  
11196 \emph on
11197 must
11198 \emph default
11199  follow the 
11200 \family sans
11201 Slide
11202 \family default
11203  with which it is associated.
11204  What's a person to do?
11205 \end_layout
11206
11207 \begin_layout Standard
11208 Luckily, there are two \SpecialChar LaTeX
11209  commands that allow you to select what to print
11210  out.
11211  Both must be placed into the preamble of your document.
11212  The command 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216
11217 \family typewriter
11218
11219 \backslash
11220 onlyslides{
11221 \backslash
11222 slides}
11223 \family default
11224
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228  will cause the output to contain only the 
11229 \family sans
11230 Slide
11231 \family default
11232 s and 
11233 \family sans
11234 Overlay
11235 \family default
11236 s.
11237  Correspondingly, the command 
11238 \begin_inset Quotes eld
11239 \end_inset
11240
11241
11242 \family typewriter
11243
11244 \backslash
11245 onlynotes{
11246 \backslash
11247 notes}
11248 \family default
11249
11250 \begin_inset Quotes erd
11251 \end_inset
11252
11253  prevents the output of anything but 
11254 \family sans
11255 Note
11256 \family default
11257 s.
11258  I'd advise placing both commands in the preamble and initially comment
11259  both out.
11260  You can then preview your entire presentation as you write.
11261  When you're done writing, you can then uncomment one of the two to select
11262  what you want to print.
11263  I like to uncomment 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \family typewriter
11269
11270 \backslash
11271 onlyslides{
11272 \backslash
11273 slides}
11274 \family default
11275
11276 \begin_inset Quotes erd
11277 \end_inset
11278
11279  , print to a file with 
11280 \begin_inset Quotes eld
11281 \end_inset
11282
11283
11284 \family typewriter
11285 -slides
11286 \family default
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  in its name, comment it back out, then uncomment 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295
11296 \family typewriter
11297
11298 \backslash
11299 onlynotes{
11300 \backslash
11301 notes}
11302 \family default
11303
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and print to a 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family typewriter
11313 *-notes.ps
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319  file.
11320  I can then send either file to a printer, loading transparencies or plain
11321  paper as appropriate.
11322 \end_layout
11323
11324 \begin_layout Standard
11325 You can also provide other arguments to the 
11326 \begin_inset Quotes eld
11327 \end_inset
11328
11329
11330 \family typewriter
11331
11332 \backslash
11333 onlyslides{}
11334 \family default
11335
11336 \begin_inset Quotes erd
11337 \end_inset
11338
11339  and 
11340 \begin_inset Quotes eld
11341 \end_inset
11342
11343
11344 \family typewriter
11345
11346 \backslash
11347 onlynotes{}
11348 \family default
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353  commands.
11354  See a good \SpecialChar LaTeX
11355  book for details.
11356 \end_layout
11357
11358 \begin_layout Subsubsection
11359 The 
11360 \family sans
11361 slides
11362 \family default
11363  Class Template File
11364 \end_layout
11365
11366 \begin_layout Standard
11367 I have also provided a template file, 
11368 \begin_inset Quotes eld
11369 \end_inset
11370
11371
11372 \family typewriter
11373 slides.lyx
11374 \family default
11375
11376 \begin_inset Quotes erd
11377 \end_inset
11378
11379 , with the 
11380 \family sans
11381 slides
11382 \family default
11383  class.
11384  To use it, begin your new presentation with 
11385 \family sans
11386 File\SpecialChar menuseparator
11387 New
11388 \begin_inset space ~
11389 \end_inset
11390
11391 from
11392 \begin_inset space ~
11393 \end_inset
11394
11395 Template
11396 \family default
11397 .
11398  Your new \SpecialChar LyX
11399  presentation file will contain an example 
11400 \family sans
11401 Slide
11402 \family default
11403  – 
11404 \family sans
11405 Overlay
11406 \family default
11407  – 
11408 \family sans
11409 Note
11410 \family default
11411  triplet.
11412  The 
11413 \family sans
11414 Slide
11415 \family default
11416  and 
11417 \family sans
11418 Overlay
11419 \family default
11420  additionally contain an example of the use of 
11421 \family sans
11422 InvisibleText
11423 \family default
11424  and 
11425 \family sans
11426 VisibleText
11427 \family default
11428 .
11429  Lastly, the preamble will contain:
11430 \end_layout
11431
11432 \begin_layout LyX-Code
11433 % Uncomment to print out only slides and overlays
11434 \end_layout
11435
11436 \begin_layout LyX-Code
11437 %
11438 \end_layout
11439
11440 \begin_layout LyX-Code
11441 %
11442 \backslash
11443 onlyslides{
11444 \backslash
11445 slides}
11446 \begin_inset Newline newline
11447 \end_inset
11448
11449  
11450 \end_layout
11451
11452 \begin_layout LyX-Code
11453 % Uncomment to print out only notes
11454 \end_layout
11455
11456 \begin_layout LyX-Code
11457 %
11458 \end_layout
11459
11460 \begin_layout LyX-Code
11461 %
11462 \backslash
11463 onlynotes{
11464 \backslash
11465 notes}
11466 \end_layout
11467
11468 \begin_layout Standard
11469 One final thing: I created this class to support the \SpecialChar LaTeX2e
11470  
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474
11475 \noun on
11476 Sli\SpecialChar TeX
11477
11478 \noun default
11479  emulation
11480 \begin_inset Quotes erd
11481 \end_inset
11482
11483  class, one of the built-in \SpecialChar LaTeX2e
11484  classes.
11485  Neither I nor the rest of the \SpecialChar LyX
11486  Team endorse or oppose the use of this built-in
11487  slide class.
11488  It's here if you want it or need it.
11489  There exist other \SpecialChar LaTeX2e
11490  classes for creating presentations, such as the 
11491 \family sans
11492 Foils
11493 \family default
11494  class [see section
11495 \begin_inset space ~
11496 \end_inset
11497
11498
11499 \begin_inset CommandInset ref
11500 LatexCommand ref
11501 reference "sec:foiltex"
11502
11503 \end_inset
11504
11505 ] or the 
11506 \begin_inset Quotes eld
11507 \end_inset
11508
11509
11510 \family typewriter
11511 seminar
11512 \family default
11513
11514 \begin_inset Quotes erd
11515 \end_inset
11516
11517  package [present on some \SpecialChar TeX
11518  distributions].
11519  The latter is not yet supported under \SpecialChar LyX
11520 .
11521 \begin_inset Foot
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 Perhaps you can take on the task\SpecialChar ldots
11526
11527 \end_layout
11528
11529 \end_inset
11530
11531  I know nothing about these other classes.
11532  Try them out to see what sort of alternative they provide.
11533 \end_layout
11534
11535 \begin_layout Section
11536
11537 \change_inserted 564990737 1670439661
11538 Reports
11539 \end_layout
11540
11541 \begin_layout Subsection
11542
11543 \change_inserted 564990737 1670439661
11544 report
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \change_inserted 564990737 1670439661
11550 The document class 
11551 \family sans
11552 report
11553 \family default
11554  provides the 
11555 \family sans
11556 report.cls
11557 \family default
11558  document class for preparing reports.
11559  Like the 
11560 \family sans
11561 book
11562 \family default
11563  document class, this provides parts, chapters and sections but does not
11564  provide the paragraph styles needed for a book; like the 
11565 \family sans
11566 article
11567 \family default
11568  document class, it provides the abstract paragraph style.
11569  In two-sided mode, it does not start a new chapter on the right hand page.
11570 \end_layout
11571
11572 \begin_layout Standard
11573
11574 \change_inserted 564990737 1670439674
11575 The remaining 
11576 \family sans
11577 report
11578 \family default
11579  document classes are described in the Collections (section
11580 \begin_inset space ~
11581 \end_inset
11582
11583
11584 \begin_inset CommandInset ref
11585 LatexCommand ref
11586 reference "sec:Collections"
11587
11588 \end_inset
11589
11590 ).
11591 \end_layout
11592
11593 \begin_layout Section
11594
11595 \change_inserted 564990737 1670439674
11596 Scripts (drama)
11597 \end_layout
11598
11599 \begin_layout Subsection
11600 Broadway
11601 \end_layout
11602
11603 \begin_layout Standard
11604 by 
11605 \shape smallcaps
11606 Garst Reese
11607 \end_layout
11608
11609 \begin_layout Subsubsection
11610 Introduction
11611 \end_layout
11612
11613 \begin_layout Standard
11614 Broadway is for writing plays.
11615  The format is more decorative than Hollywood, and much less standardized.
11616  This format should be suitable for workshops.
11617 \end_layout
11618
11619 \begin_layout Subsubsection
11620 Special problems
11621 \end_layout
11622
11623 \begin_layout Standard
11624 The same as in Hollywood.
11625 \end_layout
11626
11627 \begin_layout Subsubsection
11628 Special features
11629 \end_layout
11630
11631 \begin_layout Standard
11632 Insert the 
11633 \family sans
11634 Speaker
11635 \family default
11636  names as labels then cross-reference the label to insert the name.
11637  The cross-reference dialog will show the current cast of characters.
11638 \end_layout
11639
11640 \begin_layout Subsubsection
11641 Paper size and Margins
11642 \end_layout
11643
11644 \begin_layout Standard
11645 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Environments
11650 \end_layout
11651
11652 \begin_layout Standard
11653 The following environments are available.
11654  You can use broadway.bind to get the bind keys shown at the right.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 Standard
11661 \begin_inset Newline newline
11662 \end_inset
11663
11664
11665 \family default
11666 You should not have to use this, but it is here for anything that does not
11667  fit otherwise.
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 Narrative
11674 \begin_inset space \hfill{}
11675 \end_inset
11676
11677 M-z n
11678 \begin_inset Newline newline
11679 \end_inset
11680
11681
11682 \family default
11683 Used to describe stage setting and the action.
11684  First use of speaker names in all CAPs.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 ACT
11691 \begin_inset space \hfill{}
11692 \end_inset
11693
11694 M-z a
11695 \begin_inset Newline newline
11696 \end_inset
11697
11698
11699 \family default
11700 Automatically numbered.
11701  On screen it will be arabic, but will print as Roman.
11702 \end_layout
11703
11704 \begin_layout Itemize
11705
11706 \family sans
11707 ACT*
11708 \begin_inset space \hfill{}
11709 \end_inset
11710
11711 M-z S at
11712 \begin_inset Newline newline
11713 \end_inset
11714
11715
11716 \family default
11717 Subtitle for 
11718 \family sans
11719 ACT.
11720
11721 \family default
11722  It is just centered text.
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 SCENE
11729 \begin_inset space \hfill{}
11730 \end_inset
11731
11732 M-z S-S
11733 \begin_inset Newline newline
11734 \end_inset
11735
11736
11737 \family default
11738 Not automatically numbered.
11739  You supply the number.
11740  This is because I couldn't figure out how.
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 AT_RISE:
11747 \begin_inset space \hfill{}
11748 \end_inset
11749
11750 M-z S-R
11751 \begin_inset Newline newline
11752 \end_inset
11753
11754
11755 \family default
11756 A special case of Narrative to describe the setting and action as the curtain
11757  rises.
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Speaker
11764 \begin_inset space \hfill{}
11765 \end_inset
11766
11767 M-z s
11768 \begin_inset Newline newline
11769 \end_inset
11770
11771
11772 \family default
11773 The speaker's (actor's) title, centered in all CAPS.
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family sans
11779 Parenthetical
11780 \begin_inset space \hfill{}
11781 \end_inset
11782
11783 M-z p
11784 \begin_inset Newline newline
11785 \end_inset
11786
11787
11788 \family default
11789 Instructions to the speaker.
11790  The parentheses are automatically inserted.
11791  The ( will appear on screen, but both will be in the printed play.
11792  This environment is only used within 
11793 \family sans
11794 Dialogue
11795 \family default
11796 .
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 \family sans
11802 Dialogue
11803 \begin_inset space \hfill{}
11804 \end_inset
11805
11806 M-z d
11807 \begin_inset Newline newline
11808 \end_inset
11809
11810
11811 \family default
11812 What the Speaker says.
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 CURTAIN
11819 \begin_inset space \hfill{}
11820 \end_inset
11821
11822 M-z S-C
11823 \begin_inset Newline newline
11824 \end_inset
11825
11826
11827 \family default
11828 The curtain comes down.
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \family sans
11834 Title
11835 \begin_inset space \hfill{}
11836 \end_inset
11837
11838 M-z S-T
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Author
11845 \begin_inset space \hfill{}
11846 \end_inset
11847
11848 M-z S-A
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Right_Address
11855 \begin_inset space \hfill{}
11856 \end_inset
11857
11858 M-z r
11859 \end_layout
11860
11861 \begin_layout Standard
11862 Hello there.
11863 \end_layout
11864
11865 \begin_layout Subsection
11866 Hollywood (Hollywood spec scripts)
11867 \end_layout
11868
11869 \begin_layout Standard
11870 by 
11871 \shape smallcaps
11872 Garst Reese
11873 \end_layout
11874
11875 \begin_layout Subsubsection
11876 Introduction
11877 \end_layout
11878
11879 \begin_layout Standard
11880 Getting the format of a Hollywood script right is a 
11881 \begin_inset Quotes eld
11882 \end_inset
11883
11884 rite of passage.
11885 \begin_inset Quotes erd
11886 \end_inset
11887
11888  It is designed to make the readers focus on content and to be easy and
11889  familiar for the actors to read.
11890  Each page of a script should be one minute of film.
11891  Nothing goes in a script that you cannot see or hear on screen.
11892  The courier 12 pt font should be used throughout.
11893  No italics.
11894 \end_layout
11895
11896 \begin_layout Subsubsection
11897 Special problems
11898 \end_layout
11899
11900 \begin_layout Standard
11901 Speakers' lines should NEVER break in mid-sentence.
11902  If a speaker's lines continue over a page break, repeat the 
11903 \family sans
11904 Speaker
11905 \family default
11906  title followed by (Cont'd).
11907 \end_layout
11908
11909 \begin_layout Subsubsection
11910 Special features
11911 \end_layout
11912
11913 \begin_layout Standard
11914 Insert the 
11915 \family sans
11916 Speaker
11917 \family default
11918  names as labels then cross-reference the label to insert the name.
11919  The cross-reference dialog will show the current cast of characters.
11920  You can use this to insert the speaker name in narratives also.
11921 \end_layout
11922
11923 \begin_layout Subsubsection
11924 Paper size and Margins
11925 \end_layout
11926
11927 \begin_layout Standard
11928 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11929 \end_layout
11930
11931 \begin_layout Subsubsection
11932 Environments
11933 \end_layout
11934
11935 \begin_layout Standard
11936 The following environments are available.
11937  You can use hollywood.bind to get the bind keys shown at the right.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 Standard
11944 \begin_inset Newline newline
11945 \end_inset
11946
11947
11948 \family default
11949 Used where nothing else works.
11950  Try to avoid it.
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 FADE_IN
11957 \family default
11958 :
11959 \begin_inset space \hfill{}
11960 \end_inset
11961
11962
11963 \family sans
11964 M-z S-I
11965 \family default
11966
11967 \begin_inset Newline newline
11968 \end_inset
11969
11970 Usually followed by something like 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974 on Sally waking up.
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978
11979 \end_layout
11980
11981 \begin_layout Itemize
11982
11983 \family sans
11984 INT:
11985 \begin_inset space \hfill{}
11986 \end_inset
11987
11988 M-z i
11989 \begin_inset Newline newline
11990 \end_inset
11991
11992
11993 \family default
11994 Introduces a new INTERIOR camera set-up.
11995  Always followed by DAY or NIGHT, or something similar to define the lighting
11996  required.
11997  Everthing on this line in CAPS.
11998 \end_layout
11999
12000 \begin_layout Itemize
12001
12002 \family sans
12003 EXT:
12004 \begin_inset space \hfill{}
12005 \end_inset
12006
12007 M-z e
12008 \begin_inset Newline newline
12009 \end_inset
12010
12011
12012 \family default
12013 Introduces a new EXTERIOR camera set-up.
12014  Everthing on this line in CAPS.
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \family sans
12020 Speaker
12021 \begin_inset space \hfill{}
12022 \end_inset
12023
12024 M-z s
12025 \begin_inset Newline newline
12026 \end_inset
12027
12028
12029 \family default
12030 The character speaking.
12031 \end_layout
12032
12033 \begin_layout Itemize
12034
12035 \family sans
12036 Parenthetical
12037 \begin_inset space \hfill{}
12038 \end_inset
12039
12040 M-z p
12041 \begin_inset Newline newline
12042 \end_inset
12043
12044
12045 \family default
12046 Instructions to the speaker.
12047  The () are automatically inserted.
12048 \end_layout
12049
12050 \begin_layout Itemize
12051
12052 \family sans
12053 Dialogue
12054 \begin_inset space \hfill{}
12055 \end_inset
12056
12057 M-z d
12058 \begin_inset Newline newline
12059 \end_inset
12060
12061
12062 \family default
12063 What the 
12064 \family sans
12065 Speaker
12066 \family default
12067  says.
12068 \end_layout
12069
12070 \begin_layout Itemize
12071
12072 \family sans
12073 Transition
12074 \begin_inset space \hfill{}
12075 \end_inset
12076
12077 M-z t
12078 \begin_inset Newline newline
12079 \end_inset
12080
12081
12082 \family default
12083 Camera movement instruction.
12084  e.
12085 \begin_inset space \thinspace{}
12086 \end_inset
12087
12088 g.
12089 \begin_inset space \space{}
12090 \end_inset
12091
12092 CUT TO:
12093 \end_layout
12094
12095 \begin_layout Itemize
12096
12097 \family sans
12098 FADE OUT:
12099 \begin_inset space \hfill{}
12100 \end_inset
12101
12102 M-z S-I
12103 \end_layout
12104
12105 \begin_layout Itemize
12106
12107 \family sans
12108 Author
12109 \begin_inset space \hfill{}
12110 \end_inset
12111
12112 M-z S-A
12113 \end_layout
12114
12115 \begin_layout Itemize
12116
12117 \family sans
12118 Title
12119 \begin_inset space \hfill{}
12120 \end_inset
12121
12122 M-z S-T
12123 \end_layout
12124
12125 \begin_layout Itemize
12126
12127 \family sans
12128 Right_Address
12129 \begin_inset space \hfill{}
12130 \end_inset
12131
12132 M-z r
12133 \end_layout
12134
12135 \begin_layout Subsubsection
12136 Script jargon
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 (O.S) — off screen
12141 \end_layout
12142
12143 \begin_layout Itemize
12144 (V.0) — voice over
12145 \end_layout
12146
12147 \begin_layout Itemize
12148 b.
12149 \begin_inset space \thinspace{}
12150 \end_inset
12151
12152 g.
12153  — background
12154 \end_layout
12155
12156 \begin_layout Itemize
12157 C.U.
12158  — close-up
12159 \end_layout
12160
12161 \begin_layout Itemize
12162 PAN — camera movement
12163 \end_layout
12164
12165 \begin_layout Itemize
12166 INSERT — cut to close-up of
12167 \end_layout
12168
12169 \begin_layout Chapter
12170
12171 \change_inserted 564990737 1671185876
12172 Modules
12173 \end_layout
12174
12175 \begin_layout Section
12176 Multiple Text Columns
12177 \end_layout
12178
12179 \begin_layout Standard
12180 This feature is independent of the option 
12181 \family sans
12182 Two-column document
12183 \family default
12184  in the document settings under 
12185 \family sans
12186 Text Layout
12187 \family default
12188 .
12189  If you want to have 2
12190 \begin_inset space ~
12191 \end_inset
12192
12193 columns for the whole document, it is recommended to use the 
12194 \family sans
12195 Two-column document
12196 \family default
12197  option.
12198  For all other cases use this feature.
12199 \end_layout
12200
12201 \begin_layout Standard
12202 To use multiple text columns in your document, you have to load the module
12203  
12204 \family sans
12205 Multiple Columns
12206 \family default
12207  (menu 
12208 \family sans
12209 Document\SpecialChar menuseparator
12210 Settings\SpecialChar menuseparator
12211 Modules
12212 \family default
12213 ) and must have the \SpecialChar LaTeX
12214 -package 
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 multicol
12220 \end_layout
12221
12222 \end_inset
12223
12224  installed.
12225 \end_layout
12226
12227 \begin_layout Standard
12228 Footnotes within multiple columns will be placed at the bottom of the page
12229  and not under each column.
12230  Within the different columns you can use everything, with the limitation
12231  that for floats you need to use the float option 
12232 \family sans
12233 Span columns
12234 \family default
12235 .
12236 \end_layout
12237
12238 \begin_layout Subsection
12239 Basics
12240 \end_layout
12241
12242 \begin_layout Standard
12243 If you want to have 2
12244 \begin_inset space ~
12245 \end_inset
12246
12247 columns in your text, insert a multicolumn inset via the menu 
12248 \family sans
12249 Insert\SpecialChar menuseparator
12250 Custom
12251 \begin_inset space ~
12252 \end_inset
12253
12254 Insets\SpecialChar menuseparator
12255 Multiple
12256 \begin_inset space ~
12257 \end_inset
12258
12259 Columns
12260 \family default
12261  where the columns should start.
12262  Write all text that should be printed in 2
12263 \begin_inset space ~
12264 \end_inset
12265
12266 columns into this inset.
12267 \end_layout
12268
12269 \begin_layout Standard
12270 Here is an example:
12271 \end_layout
12272
12273 \begin_layout Standard
12274 \noindent
12275 \begin_inset Flex Multiple Columns
12276 status open
12277
12278 \begin_layout Plain Layout
12279 \noindent
12280
12281 \series bold
12282 \size small
12283 The Adventure of the Empty House
12284 \series default
12285
12286 \begin_inset Newline newline
12287 \end_inset
12288
12289 by Sir Arthur Conan Doyle
12290 \end_layout
12291
12292 \begin_layout Plain Layout
12293
12294 \size small
12295 It was in the spring of the year 1894 that all London was interested, and
12296  the fashionable world dismayed, by the murder of the Honourable Ronald
12297  Adair under most unusual and inexplicable circumstances.
12298  The public has already learned those particulars of the crime which came
12299  out in the police investigation, but a good deal was suppressed upon that
12300  occasion, since the case for the prosecution was so overwhelmingly strong
12301  that it was not necessary to bring forward all the facts.
12302  Only now, at the end of nearly ten years, am I allowed to supply those
12303  missing links which make up the whole of that remarkable chain.
12304  The crime was of interest in itself, but that interest was as nothing to
12305  me compared to the inconceivable sequel, which afforded me the greatest
12306  shock and surprise of any event in my adventurous life.
12307  Even now, after this long interval, I find myself thrilling as I think
12308  of it, and feeling once more that sudden flood of joy, amazement, and increduli
12309 ty which utterly submerged my mind.
12310  Let me say to that public, which has shown some interest in those glimpses
12311  which I have occasionally given them of the thoughts and actions of a very
12312  remarkable man, that they are not to blame me if I have not shared my knowledge
12313  with them, for I should have considered it my first duty to do so, had
12314  I not been barred by a positive prohibition from his own lips, which was
12315  only withdrawn upon the third of last month.
12316 \end_layout
12317
12318 \end_inset
12319
12320
12321 \end_layout
12322
12323 \begin_layout Standard
12324 To get 3 or more columns, set the cursor into the multicolumn inset and
12325  use the menu 
12326 \family sans
12327 Insert\SpecialChar menuseparator
12328 Number
12329 \begin_inset space ~
12330 \end_inset
12331
12332 of
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Columns
12337 \family default
12338 .
12339  The number of the desired columns is written into that inset (for 3
12340 \begin_inset space ~
12341 \end_inset
12342
12343 columns write 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 3
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351 ).
12352 \begin_inset Newline newline
12353 \end_inset
12354
12355 Here is an example with 3
12356 \begin_inset space ~
12357 \end_inset
12358
12359 columns:
12360 \end_layout
12361
12362 \begin_layout Standard
12363 \begin_inset Flex Multiple Columns
12364 status open
12365
12366 \begin_layout Plain Layout
12367
12368 \size footnotesize
12369 \begin_inset Argument 1
12370 status open
12371
12372 \begin_layout Plain Layout
12373
12374 3
12375 \end_layout
12376
12377 \end_inset
12378
12379 It can be imagined that my close intimacy with Sherlock Holmes had interested
12380  me deeply in crime, and that after his disappearance I never failed to
12381  read with care the various problems which came before the public.
12382  And I even attempted, more than once, for my own private satisfaction,
12383  to employ his methods in their solution, though with indifferent success.
12384  There was none, however, which appealed to me like this tragedy of Ronald
12385  Adair.
12386  As I read the evidence at the inquest, which led up to a verdict of willful
12387  murder against some person or persons unknown, I realized more clearly
12388  than I had ever done the loss which the community had sustained by the
12389  death of Sherlock Holmes.
12390  There were points about this strange business which would, I was sure,
12391  have specially appealed to him, and the efforts of the police would have
12392  been supplemented, or more probably anticipated, by the trained observation
12393  and the alert mind of the first criminal agent in Europe.
12394  All day, as I drove upon my round, I turned over the case in my mind and
12395  found no explanation which appeared to me to be adequate.
12396  At the risk of telling a twice-told tale, I will recapitulate the facts
12397  as they were known to the public at the conclusion of the inquest.
12398 \end_layout
12399
12400 \end_inset
12401
12402
12403 \end_layout
12404
12405 \begin_layout Standard
12406 You can have up to 10
12407 \begin_inset space ~
12408 \end_inset
12409
12410 columns if you want to, but that might not be very pleasant for the readers
12411  of your document.
12412 \end_layout
12413
12414 \begin_layout Standard
12415 \begin_inset Newpage newpage
12416 \end_inset
12417
12418
12419 \end_layout
12420
12421 \begin_layout Subsection
12422 Columns inside Columns
12423 \end_layout
12424
12425 \begin_layout Standard
12426 You can also have columns inside columns:
12427 \end_layout
12428
12429 \begin_layout Standard
12430 \begin_inset Flex Multiple Columns
12431 status open
12432
12433 \begin_layout Plain Layout
12434
12435 \size footnotesize
12436 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
12437  at that time governor of one of the Australian colonies.
12438  Adair's mother had returned from Australia to undergo the operation for
12439  cataract, and she, her son Ronald, and her daughter Hilda were living together
12440  at 427 Park Lane.
12441 \end_layout
12442
12443 \begin_layout Plain Layout
12444 \begin_inset Flex Multiple Columns
12445 status open
12446
12447 \begin_layout Plain Layout
12448
12449 \size footnotesize
12450 The youth moved in the best society
12451 \begin_inset space ~
12452 \end_inset
12453
12454 – had, so far as was known, no enemies and no particular vices.
12455  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
12456  had been broken off by mutual consent some months before, and there was
12457  no sign that it had left any very profound feeling behind it.
12458  For the rest {sic} the man's life moved in a narrow and conventional circle,
12459  for his habits were quiet and his nature unemotional.
12460  Yet it was upon this easy-going young aristocrat that death came, in most
12461  strange and unexpected form, between the hours of ten and eleven-twenty
12462  on the night of March 30, 1894.
12463 \end_layout
12464
12465 \end_inset
12466
12467
12468 \end_layout
12469
12470 \begin_layout Plain Layout
12471
12472 \size footnotesize
12473 Ronald Adair was fond of cards
12474 \begin_inset space ~
12475 \end_inset
12476
12477 – playing continually, but never for such stakes as would hurt him.
12478  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
12479  It was shown that, after dinner on the day of his death, he had played
12480  a rubber of whist at the latter club.
12481  He had also played there in the afternoon.
12482
12483 \size default
12484  
12485 \size footnotesize
12486 The evidence of those who had played with him
12487 \begin_inset space ~
12488 \end_inset
12489
12490 – Mr.
12491  Murray, Sir John Hardy, and Colonel Moran
12492 \begin_inset space ~
12493 \end_inset
12494
12495 – showed that the game was whist, and that there was a fairly equal fall
12496  of the cards.
12497  Adair might have lost five pounds, but not more.
12498  His fortune was a considerable one, and such a loss could not in any way
12499  affect him.
12500  He had played nearly every day at one club or other, but he was a cautious
12501  player, and usually rose a winner.
12502  It came out in evidence that, in partnership with Colonel Moran, he had
12503  actually won as much as four hundred and twenty pounds in a sitting, some
12504  weeks before, from Godfrey Milner and Lord Balmoral.
12505  So much for his recent history as it came out at the inquest.
12506 \end_layout
12507
12508 \end_inset
12509
12510
12511 \end_layout
12512
12513 \begin_layout Subsection
12514 Advanced Examples
12515 \end_layout
12516
12517 \begin_layout Standard
12518 The examples in this section show some more special features of multiple
12519  columns.
12520 \end_layout
12521
12522 \begin_layout Standard
12523 For more features of multiple columns, have a look at the 
12524 \begin_inset CommandInset href
12525 LatexCommand href
12526 name "documentation"
12527 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
12528 literal "false"
12529
12530 \end_inset
12531
12532  of the \SpecialChar LaTeX
12533 -package 
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 multicol
12539 \end_layout
12540
12541 \end_inset
12542
12543 .
12544 \end_layout
12545
12546 \begin_layout Subsubsection
12547 Preface
12548 \end_layout
12549
12550 \begin_layout Standard
12551 To add a preface text for multiple columns, set the cursor into the multicolumn
12552  inset and use the menu 
12553 \family sans
12554 Insert\SpecialChar menuseparator
12555 Preface
12556 \family default
12557 .
12558  Write your preface text into that inset.
12559 \begin_inset Newline newline
12560 \end_inset
12561
12562 This is an example with some preface text:
12563 \end_layout
12564
12565 \begin_layout Standard
12566 \begin_inset VSpace bigskip
12567 \end_inset
12568
12569
12570 \end_layout
12571
12572 \begin_layout Standard
12573 \begin_inset Flex Multiple Columns
12574 status open
12575
12576 \begin_layout Plain Layout
12577 \begin_inset Argument 2
12578 status open
12579
12580 \begin_layout Plain Layout
12581 And the story continues and continues and continues and continues\SpecialChar ldots
12582
12583 \end_layout
12584
12585 \end_inset
12586
12587
12588 \size small
12589 On the evening of the crime, he returned from the club exactly at ten.
12590  His mother and sister were out spending the evening with a relation.
12591  The servant deposed that she heard him enter the front room on the second
12592  floor, generally used as his sitting-room.
12593  She had lit a fire there, and as it smoked she had opened the window.
12594  No sound was heard from the room until eleven-twenty, the hour of the return
12595  of Lady Maynooth and her daughter.
12596  Desiring to say good-night, she attempted to enter her son's room.
12597  The door was locked on the inside, and no answer could be got to their
12598  cries and knocking.
12599  Help was obtained, and the door forced.
12600  The unfortunate young man was found lying near the table.
12601  His head had been horribly mutilated by an expanding revolver bullet, but
12602  no weapon of any sort was to be found in the room.
12603 \end_layout
12604
12605 \end_inset
12606
12607
12608 \end_layout
12609
12610 \begin_layout Standard
12611 You can also use a section heading as the preface if you use a section command
12612  as \SpecialChar TeX
12613  Code.
12614  For example the command
12615 \end_layout
12616
12617 \begin_layout LyX-Code
12618
12619 \backslash
12620 subsection{subsection title}
12621 \end_layout
12622
12623 \begin_layout Standard
12624 creates a subsection.
12625  In this example the preface is a subsubsection:
12626 \end_layout
12627
12628 \begin_layout Standard
12629 \begin_inset Flex Multiple Columns
12630 status open
12631
12632 \begin_layout Plain Layout
12633 \begin_inset Argument 2
12634 status open
12635
12636 \begin_layout Plain Layout
12637 \begin_inset ERT
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641
12642
12643 \backslash
12644 subsubsection{
12645 \end_layout
12646
12647 \end_inset
12648
12649 This is a subsubsection heading as a preface
12650 \begin_inset ERT
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654
12655 }
12656 \end_layout
12657
12658 \end_inset
12659
12660
12661 \end_layout
12662
12663 \end_inset
12664
12665
12666 \size small
12667 A minute examination of the circumstances served only to make the case more
12668  complex.
12669  In the first place, no reason could be given why the young man should have
12670  fastened the door upon the inside.
12671  There was the possibility that the murderer had done this, and had afterwards
12672  escaped by the window.
12673  The drop was at least twenty feet, however, and a bed of crocuses in full
12674  bloom lay beneath.
12675  Neither the flowers nor the earth showed any sign of having been disturbed,
12676  nor were there any marks upon the narrow strip of grass which separated
12677  the house from the road.
12678  Apparently, therefore, it was the young man himself who had fastened the
12679  door.
12680  But how did he come by his death? No one could have climbed up to the window
12681  without leaving traces.
12682  Suppose a man had fired through the window, he would indeed be a remarkable
12683  shot who could with a revolver inflict so deadly a wound.
12684  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
12685  a hundred yards of the house.
12686  No one had heard a shot.
12687 \end_layout
12688
12689 \end_inset
12690
12691
12692 \end_layout
12693
12694 \begin_layout Standard
12695 If there is less vertical space than 6
12696 \begin_inset space ~
12697 \end_inset
12698
12699 text lines is left on the page at the beginning of the multiple columns,
12700  a page break will be inserted before the multiple columns.
12701  Depending on the number of lines of the preface text, you might want to
12702  change this space.
12703  This is done by setting the cursor into the mulitcolumn inset behind the
12704  preface (if there is any) and using the menu 
12705 \family sans
12706 Insert\SpecialChar menuseparator
12707 Space
12708 \begin_inset space ~
12709 \end_inset
12710
12711 Before
12712 \begin_inset space ~
12713 \end_inset
12714
12715 Page
12716 \begin_inset space ~
12717 \end_inset
12718
12719 Break
12720 \family default
12721 .
12722  Insert into that inset the amount of space like e.
12723 \begin_inset space \thinspace{}
12724 \end_inset
12725
12726 g.
12727 \begin_inset space \space{}
12728 \end_inset
12729
12730
12731 \begin_inset Quotes eld
12732 \end_inset
12733
12734 5cm
12735 \begin_inset Quotes erd
12736 \end_inset
12737
12738 .
12739 \begin_inset Newline newline
12740 \end_inset
12741
12742 In this example the space is set to 7
12743 \begin_inset space ~
12744 \end_inset
12745
12746 text lines by using 
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751 7
12752 \backslash
12753 baselineskip
12754 \end_layout
12755
12756 \end_inset
12757
12758  (where the command 
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \backslash
12765 baselineskip
12766 \end_layout
12767
12768 \end_inset
12769
12770  needs to be inserted as \SpecialChar TeX
12771  code):
12772 \end_layout
12773
12774 \begin_layout Standard
12775 \begin_inset Flex Multiple Columns
12776 status open
12777
12778 \begin_layout Plain Layout
12779 \begin_inset Argument 3
12780 status open
12781
12782 \begin_layout Plain Layout
12783 7
12784 \begin_inset ERT
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788
12789
12790 \backslash
12791 baselineskip
12792 \end_layout
12793
12794 \end_inset
12795
12796
12797 \end_layout
12798
12799 \end_inset
12800
12801
12802 \size small
12803 On the evening of the crime, he returned from the club exactly at ten.
12804  His mother and sister were out spending the evening with a relation.
12805  The servant deposed that she heard him enter the front room on the second
12806  floor, generally used as his sitting-room.
12807  She had lit a fire there, and as it smoked she had opened the window.
12808  No sound was heard from the room until eleven-twenty, the hour of the return
12809  of Lady Maynooth and her daughter.
12810  Desiring to say good-night, she attempted to enter her son's room.
12811  The door was locked on the inside, and no answer could be got to their
12812  cries and knocking.
12813  Help was obtained, and the door forced.
12814  The unfortunate young man was found lying near the table.
12815  His head had been horribly mutilated by an expanding revolver bullet, but
12816  no weapon of any sort was to be found in the room.
12817 \end_layout
12818
12819 \end_inset
12820
12821
12822 \end_layout
12823
12824 \begin_layout Subsubsection
12825 Surrounding Space
12826 \end_layout
12827
12828 \begin_layout Standard
12829 The amount of space before and after multiple columns can be changed by
12830  changing the length 
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \backslash
12837 multicolsep
12838 \end_layout
12839
12840 \end_inset
12841
12842 .
12843  For example the command
12844 \end_layout
12845
12846 \begin_layout LyX-Code
12847
12848 \backslash
12849 setlength{
12850 \backslash
12851 multicolsep}{3cm}
12852 \end_layout
12853
12854 \begin_layout Standard
12855 in \SpecialChar TeX
12856  Code changes its value to 3
12857 \begin_inset space \thinspace{}
12858 \end_inset
12859
12860 cm.
12861  The change must be made before the multiple columns' start.
12862  The predefined value is 13
12863 \begin_inset space \thinspace{}
12864 \end_inset
12865
12866 pt.
12867 \end_layout
12868
12869 \begin_layout Standard
12870 For this example 
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875
12876 \backslash
12877 multicolsep
12878 \end_layout
12879
12880 \end_inset
12881
12882  was set to 2.5
12883 \begin_inset space \thinspace{}
12884 \end_inset
12885
12886 cm:
12887 \end_layout
12888
12889 \begin_layout Standard
12890 \begin_inset ERT
12891 status open
12892
12893 \begin_layout Plain Layout
12894
12895
12896 \backslash
12897 setlength{
12898 \backslash
12899 multicolsep}{2.5cm}
12900 \end_layout
12901
12902 \end_inset
12903
12904
12905 \end_layout
12906
12907 \begin_layout Standard
12908 \begin_inset Flex Multiple Columns
12909 status open
12910
12911 \begin_layout Plain Layout
12912
12913 \size small
12914 All day I turned these facts over in my mind, endeavouring to hit upon some
12915  theory which could reconcile them all, and to find that line of least resistanc
12916 e which my poor friend had declared to be the starting-point of every investigat
12917 ion.
12918  I confess that I made little progress.
12919  In the evening I strolled across the Park, and found myself about six o'clock
12920  at the Oxford Street end of Park Lane.
12921  A group of loafers upon the pavements, all staring up at a particular window,
12922  directed me to the house which I had come to see.
12923  A tall, thin man with coloured glasses, whom I strongly suspected of being
12924  a plain-clothes detective, was pointing out some theory of his own, while
12925  the others crowded round to listen to what he said.
12926  I got as near him as I could, but his observations seemed to me to be absurd,
12927  so I withdrew again in some disgust.
12928  As I did so I struck against an elderly, deformed man, who had been behind
12929  me, and I knocked down several books which he was carrying.
12930 \end_layout
12931
12932 \end_inset
12933
12934
12935 \end_layout
12936
12937 \begin_layout Standard
12938 \begin_inset Note Greyedout
12939 status open
12940
12941 \begin_layout Plain Layout
12942
12943 \series bold
12944 Note:
12945 \series default
12946  The values you set with 
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951
12952 \backslash
12953 setlength
12954 \end_layout
12955
12956 \end_inset
12957
12958  will be used for all following multiple columns until you change them again.
12959 \end_layout
12960
12961 \end_inset
12962
12963
12964 \end_layout
12965
12966 \begin_layout Standard
12967 \begin_inset ERT
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971
12972
12973 \backslash
12974 setlength{
12975 \backslash
12976 multicolsep}{13pt}
12977 \end_layout
12978
12979 \end_inset
12980
12981
12982 \begin_inset Note Note
12983 status collapsed
12984
12985 \begin_layout Plain Layout
12986 go back to the default
12987 \end_layout
12988
12989 \end_inset
12990
12991
12992 \end_layout
12993
12994 \begin_layout Standard
12995 \begin_inset Newpage newpage
12996 \end_inset
12997
12998
12999 \end_layout
13000
13001 \begin_layout Subsubsection
13002 Column Breaks
13003 \end_layout
13004
13005 \begin_layout Standard
13006 A column break can be forced by inserting the command 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011
13012 \backslash
13013 columnbreak{}
13014 \end_layout
13015
13016 \end_inset
13017
13018  as \SpecialChar TeX
13019  Code to that position in the text where the column should be broken.
13020  Note that this leads in most cases to whitespace in the text.
13021 \begin_inset Newline newline
13022 \end_inset
13023
13024 Here is an example:
13025 \end_layout
13026
13027 \begin_layout Standard
13028 \begin_inset Flex Multiple Columns
13029 status open
13030
13031 \begin_layout Plain Layout
13032
13033 \size small
13034 \begin_inset Quotes eld
13035 \end_inset
13036
13037 You're surprised to see me, sir,
13038 \begin_inset Quotes erd
13039 \end_inset
13040
13041  said he, in a strange, croaking voice.
13042 \end_layout
13043
13044 \begin_layout Plain Layout
13045
13046 \size small
13047 I acknowledged that I was.
13048 \end_layout
13049
13050 \begin_layout Plain Layout
13051
13052 \size small
13053 \begin_inset Quotes eld
13054 \end_inset
13055
13056 Well, I've a conscience, sir, and when I chanced to see you go into this
13057  house, as I came hobbling after you, I thought to myself, I'll just step
13058  in and see that kind gentleman, and tell him that if I was a bit gruff
13059  in my manner there was not any harm meant, and that I am much obliged to
13060  him for picking up my books.
13061 \begin_inset Quotes erd
13062 \end_inset
13063
13064
13065 \end_layout
13066
13067 \begin_layout Plain Layout
13068
13069 \size small
13070 \begin_inset Quotes eld
13071 \end_inset
13072
13073 You make too much of a trifle,
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077  said I.
13078  
13079 \begin_inset Quotes eld
13080 \end_inset
13081
13082 May I ask how you knew who I was?
13083 \begin_inset Quotes erd
13084 \end_inset
13085
13086  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
13087 \begin_inset ERT
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091
13092
13093 \backslash
13094 columnbreak{}
13095 \end_layout
13096
13097 \end_inset
13098
13099
13100 \end_layout
13101
13102 \begin_layout Plain Layout
13103
13104 \size small
13105 \begin_inset Quotes eld
13106 \end_inset
13107
13108 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13109  you'll find my little bookshop at the corner of Church Street, and very
13110  happy to see you, I am sure.
13111  Maybe you collect yourself, sir.
13112  Here's 
13113 \noun on
13114 British
13115 \begin_inset space ~
13116 \end_inset
13117
13118 Birds
13119 \noun default
13120 , and 
13121 \noun on
13122 Catullus
13123 \noun default
13124 , and 
13125 \noun on
13126 The Holy War
13127 \noun default
13128
13129 \begin_inset space ~
13130 \end_inset
13131
13132 – a bargain, every one of them.
13133  With five volumes you could just fill that gap on that second shelf.
13134  It looks untidy, does it not, sir?
13135 \begin_inset Quotes erd
13136 \end_inset
13137
13138
13139 \end_layout
13140
13141 \end_inset
13142
13143
13144 \end_layout
13145
13146 \begin_layout Subsubsection
13147 Column Separation
13148 \end_layout
13149
13150 \begin_layout Standard
13151 The width of the columns is automatically calculated, but you can modify
13152  the space between the columns.
13153  This is done by changing the length 
13154 \begin_inset Flex Code
13155 status collapsed
13156
13157 \begin_layout Plain Layout
13158
13159 \backslash
13160 columnsep
13161 \end_layout
13162
13163 \end_inset
13164
13165 .
13166  Its predefined value is 10
13167 \begin_inset space \thinspace{}
13168 \end_inset
13169
13170 pt.
13171  Here is an example where 
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176
13177 \backslash
13178 columnsep
13179 \end_layout
13180
13181 \end_inset
13182
13183  is set to 3
13184 \begin_inset space \thinspace{}
13185 \end_inset
13186
13187 cm:
13188 \end_layout
13189
13190 \begin_layout Standard
13191 \begin_inset ERT
13192 status open
13193
13194 \begin_layout Plain Layout
13195
13196
13197 \backslash
13198 setlength{
13199 \backslash
13200 columnsep}{3cm}
13201 \end_layout
13202
13203 \end_inset
13204
13205
13206 \end_layout
13207
13208 \begin_layout Standard
13209 \begin_inset Flex Multiple Columns
13210 status open
13211
13212 \begin_layout Plain Layout
13213
13214 \size small
13215 My observations of No.
13216 \begin_inset space \space{}
13217 \end_inset
13218
13219 427 Park Lane did little to clear up the problem in which I was interested.
13220  The house was separated from the street by a low wall and railing, the
13221  whole not more than five feet high.
13222  It was perfectly easy, therefore, for anyone to get into the garden, but
13223  the window was entirely inaccessible, since there was no water pipe or
13224  anything which could help the most active man to climb it.
13225  More puzzled than ever, I retraced my steps to Kensington.
13226  I had not been in my study five minutes when the maid entered to say that
13227  a person desired to see me.
13228  To my astonishment it was none other than my strange old book collector,
13229  his sharp, wizened face peering out from a frame of white hair, and his
13230  precious volumes, a dozen of them at least, wedged under his right arm.
13231 \end_layout
13232
13233 \end_inset
13234
13235
13236 \end_layout
13237
13238 \begin_layout Standard
13239 \begin_inset ERT
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243
13244
13245 \backslash
13246 setlength{
13247 \backslash
13248 columnsep}{10pt}
13249 \end_layout
13250
13251 \end_inset
13252
13253
13254 \begin_inset Note Note
13255 status collapsed
13256
13257 \begin_layout Plain Layout
13258 go back to the default
13259 \end_layout
13260
13261 \end_inset
13262
13263
13264 \end_layout
13265
13266 \begin_layout Subsubsection
13267 Vertical Lines
13268 \end_layout
13269
13270 \begin_layout Standard
13271 Between the columns a rule with a width of the length 
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276
13277 \backslash
13278 columnseprule
13279 \end_layout
13280
13281 \end_inset
13282
13283  is placed.
13284  If this rule width is set to 0
13285 \begin_inset space \thinspace{}
13286 \end_inset
13287
13288 pt (this is the default), the rule is suppressed.
13289  In the following example the rule is 2
13290 \begin_inset space \thinspace{}
13291 \end_inset
13292
13293 pt wide:
13294 \end_layout
13295
13296 \begin_layout Standard
13297 \begin_inset ERT
13298 status open
13299
13300 \begin_layout Plain Layout
13301
13302
13303 \backslash
13304 setlength{
13305 \backslash
13306 columnseprule}{2pt}
13307 \end_layout
13308
13309 \end_inset
13310
13311
13312 \end_layout
13313
13314 \begin_layout Standard
13315 \begin_inset Flex Multiple Columns
13316 status open
13317
13318 \begin_layout Plain Layout
13319
13320 \size small
13321 \begin_inset Quotes eld
13322 \end_inset
13323
13324 You're surprised to see me, sir,
13325 \begin_inset Quotes erd
13326 \end_inset
13327
13328  said he, in a strange, croaking voice.
13329 \end_layout
13330
13331 \begin_layout Plain Layout
13332
13333 \size small
13334 I acknowledged that I was.
13335 \end_layout
13336
13337 \begin_layout Plain Layout
13338
13339 \size small
13340 \begin_inset Quotes eld
13341 \end_inset
13342
13343 Well, I've a conscience, sir, and when I chanced to see you go into this
13344  house, as I came hobbling after you, I thought to myself, I'll just step
13345  in and see that kind gentleman, and tell him that if I was a bit gruff
13346  in my manner there was not any harm meant, and that I am much obliged to
13347  him for picking up my books.
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351
13352 \end_layout
13353
13354 \begin_layout Plain Layout
13355
13356 \size small
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 You make too much of a trifle,
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364  said I.
13365  
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 May I ask how you knew who I was?
13370 \begin_inset Quotes erd
13371 \end_inset
13372
13373
13374 \end_layout
13375
13376 \begin_layout Plain Layout
13377
13378 \size small
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13383  you'll find my little bookshop at the corner of Church Street, and very
13384  happy to see you, I am sure.
13385  Maybe you collect yourself, sir.
13386  Here's 
13387 \noun on
13388 British
13389 \begin_inset space ~
13390 \end_inset
13391
13392 Birds
13393 \noun default
13394 , and 
13395 \noun on
13396 Catullus
13397 \noun default
13398 , and 
13399 \noun on
13400 The Holy War
13401 \noun default
13402
13403 \begin_inset space ~
13404 \end_inset
13405
13406 – a bargain, every one of them.
13407  With five volumes you could just fill that gap on that second shelf.
13408  It looks untidy, does it not, sir?
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412
13413 \end_layout
13414
13415 \end_inset
13416
13417
13418 \end_layout
13419
13420 \begin_layout Standard
13421 \begin_inset VSpace defskip
13422 \end_inset
13423
13424
13425 \end_layout
13426
13427 \begin_layout Standard
13428 The rule can be colored by redefining the command 
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433
13434 \backslash
13435 columnseprulecolor
13436 \end_layout
13437
13438 \end_inset
13439
13440 .
13441  This is done by inserting the command
13442 \end_layout
13443
13444 \begin_layout LyX-Code
13445
13446 \backslash
13447 renewcommand{
13448 \backslash
13449 columnseprulecolor}{
13450 \backslash
13451 color{red}}
13452 \end_layout
13453
13454 \begin_layout Standard
13455 as \SpecialChar TeX
13456  Code before the multicolumn inset.
13457  Replace 
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 red
13463 \end_layout
13464
13465 \end_inset
13466
13467  in this command by a color of your choice.
13468  You can use all pre- and self-defined colors.
13469  See the 
13470 \emph on
13471 EmbeddedObjects
13472 \emph default
13473  manual, section 
13474 \emph on
13475 Colored
13476 \begin_inset space ~
13477 \end_inset
13478
13479 Tables
13480 \emph default
13481  for more information about pre- and self-defined colors.
13482  To go back to the default color insert the command
13483 \end_layout
13484
13485 \begin_layout LyX-Code
13486
13487 \backslash
13488 renewcommand{
13489 \backslash
13490 columnseprulecolor}{
13491 \backslash
13492 normalcolor}
13493 \end_layout
13494
13495 \begin_layout Standard
13496 Here is the example with a cyan rule and 1
13497 \begin_inset space \thinspace{}
13498 \end_inset
13499
13500 cm column separation:
13501 \end_layout
13502
13503 \begin_layout Standard
13504 \begin_inset ERT
13505 status open
13506
13507 \begin_layout Plain Layout
13508
13509
13510 \backslash
13511 setlength{
13512 \backslash
13513 columnsep}{1cm}
13514 \end_layout
13515
13516 \begin_layout Plain Layout
13517
13518
13519 \backslash
13520 renewcommand{
13521 \backslash
13522 columnseprulecolor}{
13523 \backslash
13524 color{cyan}}
13525 \end_layout
13526
13527 \end_inset
13528
13529
13530 \end_layout
13531
13532 \begin_layout Standard
13533 \begin_inset Flex Multiple Columns
13534 status open
13535
13536 \begin_layout Plain Layout
13537
13538 \size small
13539 \begin_inset Quotes eld
13540 \end_inset
13541
13542 You're surprised to see me, sir,
13543 \begin_inset Quotes erd
13544 \end_inset
13545
13546  said he, in a strange, croaking voice.
13547 \end_layout
13548
13549 \begin_layout Plain Layout
13550
13551 \size small
13552 I acknowledged that I was.
13553 \end_layout
13554
13555 \begin_layout Plain Layout
13556
13557 \size small
13558 \begin_inset Quotes eld
13559 \end_inset
13560
13561 Well, I've a conscience, sir, and when I chanced to see you go into this
13562  house, as I came hobbling after you, I thought to myself, I'll just step
13563  in and see that kind gentleman, and tell him that if I was a bit gruff
13564  in my manner there was not any harm meant, and that I am much obliged to
13565  him for picking up my books.
13566 \begin_inset Quotes erd
13567 \end_inset
13568
13569
13570 \end_layout
13571
13572 \begin_layout Plain Layout
13573
13574 \size small
13575 \begin_inset Quotes eld
13576 \end_inset
13577
13578 You make too much of a trifle,
13579 \begin_inset Quotes erd
13580 \end_inset
13581
13582  said I.
13583  
13584 \begin_inset Quotes eld
13585 \end_inset
13586
13587 May I ask how you knew who I was?
13588 \begin_inset Quotes erd
13589 \end_inset
13590
13591
13592 \end_layout
13593
13594 \begin_layout Plain Layout
13595
13596 \size small
13597 \begin_inset Quotes eld
13598 \end_inset
13599
13600 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13601  you'll find my little bookshop at the corner of Church Street, and very
13602  happy to see you, I am sure.
13603  Maybe you collect yourself, sir.
13604  Here's 
13605 \noun on
13606 British
13607 \begin_inset space ~
13608 \end_inset
13609
13610 Birds
13611 \noun default
13612 , and 
13613 \noun on
13614 Catullus
13615 \noun default
13616 , and 
13617 \noun on
13618 The Holy War
13619 \noun default
13620
13621 \begin_inset space ~
13622 \end_inset
13623
13624 – a bargain, every one of them.
13625  With five volumes you could just fill that gap on that second shelf.
13626  It looks untidy, does it not, sir?
13627 \begin_inset Quotes erd
13628 \end_inset
13629
13630
13631 \end_layout
13632
13633 \end_inset
13634
13635
13636 \end_layout
13637
13638 \begin_layout Standard
13639 \begin_inset ERT
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643
13644
13645 \backslash
13646 setlength{
13647 \backslash
13648 columnseprule}{0pt}
13649 \end_layout
13650
13651 \begin_layout Plain Layout
13652
13653
13654 \backslash
13655 renewcommand{
13656 \backslash
13657 columnseprulecolor}{
13658 \backslash
13659 normalcolor}
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \begin_inset Note Note
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 go back to the default
13670 \end_layout
13671
13672 \end_inset
13673
13674
13675 \end_layout
13676
13677 \begin_layout Chapter
13678 Supplemental Tools
13679 \end_layout
13680
13681 \begin_layout Section
13682 Customizing Bibliographies with Bib\SpecialChar TeX
13683  or Biblatex
13684 \end_layout
13685
13686 \begin_layout Standard
13687 The most basic information about how to use Bib\SpecialChar TeX
13688  or 
13689 \family sans
13690 Biblatex
13691 \family default
13692  with \SpecialChar LyX
13693  is contained in the section 
13694 \emph on
13695 Bibliography databases
13696 \emph default
13697  of the 
13698 \emph on
13699 User's Guide
13700 \emph default
13701 .
13702  The following subsections explain special bibliography features supported
13703  by \SpecialChar LyX
13704 .
13705 \end_layout
13706
13707 \begin_layout Subsection
13708 Alternative Citation Styles
13709 \end_layout
13710
13711 \begin_layout Standard
13712 Standard Bib\SpecialChar TeX
13713  uses numbers (e.
13714 \begin_inset space \thinspace{}
13715 \end_inset
13716
13717 g.
13718 \begin_inset space \space{}
13719 \end_inset
13720
13721
13722 \begin_inset Quotes eld
13723 \end_inset
13724
13725 [12]
13726 \begin_inset Quotes erd
13727 \end_inset
13728
13729 ) to refer to a cited work.
13730  However, in many scientific disciplines, other citation styles are in use.
13731  The most common one is the author-year style (e.
13732 \begin_inset space \thinspace{}
13733 \end_inset
13734
13735 g.
13736 \begin_inset space \space{}
13737 \end_inset
13738
13739
13740 \begin_inset Quotes eld
13741 \end_inset
13742
13743 Knuth 1984a
13744 \begin_inset Quotes erd
13745 \end_inset
13746
13747 ).
13748  \SpecialChar LyX
13749  supports three packages that provide this style, 
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754 biblatex
13755 \end_layout
13756
13757 \end_inset
13758
13759
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 natbib
13765 \end_layout
13766
13767 \end_inset
13768
13769 , and 
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 jurabib
13775 \end_layout
13776
13777 \end_inset
13778
13779 .
13780  Each of these packages has their pros and cons, which cannot be listed
13781  in detail.
13782  If you only want to have simple author-year (or author-numerical) style,
13783  or if you want to use one of the countless style files for 
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 natbib
13789 \end_layout
13790
13791 \end_inset
13792
13793 , then the established 
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 natbib
13799 \end_layout
13800
13801 \end_inset
13802
13803  package is probably your choice.
13804  If you look for specific citation styles common in law studies, you might
13805  consider the 
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 jurabib
13811 \end_layout
13812
13813 \end_inset
13814
13815  package.
13816  If you want to have full control over the formatting or look for advanced
13817  features such as ibidem, footnote citations, full title citations, advanced
13818  date formats (such as 400 BC) or full localization to other languages than
13819  English, you should definitely consider 
13820 \begin_inset Flex Code
13821 status collapsed
13822
13823 \begin_layout Plain Layout
13824 biblatex
13825 \end_layout
13826
13827 \end_inset
13828
13829 , which exceeds all other packages in terms of features, but is also quite
13830  heavy and more resource-hungry.
13831 \end_layout
13832
13833 \begin_layout Standard
13834 The handling of these packages in \SpecialChar LyX
13835  is basically the same.
13836  Go to 
13837 \begin_inset Flex Noun
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841 Document\SpecialChar menuseparator
13842 Settings
13843 \end_layout
13844
13845 \end_inset
13846
13847  and select under 
13848 \begin_inset Flex Noun
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 Bibliography
13853 \end_layout
13854
13855 \end_inset
13856
13857  the 
13858 \begin_inset Flex Noun
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 Style Format
13863 \end_layout
13864
13865 \end_inset
13866
13867  
13868 \begin_inset Flex Noun
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872 Basic (BibTeX)
13873 \end_layout
13874
13875 \end_inset
13876
13877
13878 \begin_inset Flex Noun
13879 status collapsed
13880
13881 \begin_layout Plain Layout
13882 Biblatex
13883 \end_layout
13884
13885 \end_inset
13886
13887
13888 \begin_inset Flex Noun
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892 Biblatex (Natbib mode)
13893 \end_layout
13894
13895 \end_inset
13896
13897
13898 \begin_inset Flex Noun
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902 Natbib (BibTeX)
13903 \end_layout
13904
13905 \end_inset
13906
13907  or 
13908 \begin_inset Flex Noun
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 Jurabib (BibTeX)
13913 \end_layout
13914
13915 \end_inset
13916
13917  (see sec.
13918 \begin_inset space ~
13919 \end_inset
13920
13921 6.5.3 in the User's Guide for more information on these choices).
13922  With all these packages, you will get some extra features in the citation
13923  dialog and you can select the style of the reference (
13924 \begin_inset Quotes eld
13925 \end_inset
13926
13927 Knuth 1984
13928 \begin_inset Quotes erd
13929 \end_inset
13930
13931
13932 \begin_inset Quotes eld
13933 \end_inset
13934
13935 Knuth (1984)
13936 \begin_inset Quotes erd
13937 \end_inset
13938
13939
13940 \begin_inset Quotes eld
13941 \end_inset
13942
13943 Knuth, 1984
13944 \begin_inset Quotes erd
13945 \end_inset
13946
13947
13948 \begin_inset Quotes eld
13949 \end_inset
13950
13951 1984
13952 \begin_inset Quotes erd
13953 \end_inset
13954
13955  etc.).
13956  Note that either package needs specifically designed style files.
13957  They all ship their own, but there are lots of additional style files,
13958  and there is even an interactive style file builder
13959 \begin_inset Foot
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 See 
13964 \begin_inset Flex URL
13965 status open
13966
13967 \begin_layout Plain Layout
13968
13969 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
13970 \end_layout
13971
13972 \end_inset
13973
13974
13975 \end_layout
13976
13977 \end_inset
13978
13979  for 
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 natbib
13985 \end_layout
13986
13987 \end_inset
13988
13989 .
13990 \end_layout
13991
13992 \begin_layout Subsection
13993 Subdivided Bibliographies
13994 \end_layout
13995
13996 \begin_layout Standard
13997 Sometimes you might need to divide your bibliography into several sections.
13998  If you are for instance a historian, the possibility to separate sources
13999  and scientific works is most likely a 
14000 \begin_inset Quotes eld
14001 \end_inset
14002
14003 must have
14004 \begin_inset Quotes erd
14005 \end_inset
14006
14007 .
14008  Unfortunately, Bib\SpecialChar TeX
14009  itself does not allow you to do this.
14010  But with the help of some \SpecialChar LaTeX
14011  packages, Bib\SpecialChar TeX
14012  can be extended to fit your needs.
14013 \end_layout
14014
14015 \begin_layout Standard
14016 \SpecialChar LyX
14017  provides native support for one of these packages, 
14018 \family typewriter
14019 bibtopic
14020 \family default
14021 .
14022 \begin_inset Foot
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 Available from 
14027 \begin_inset Flex URL
14028 status open
14029
14030 \begin_layout Plain Layout
14031
14032 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
14033 \end_layout
14034
14035 \end_inset
14036
14037
14038 \end_layout
14039
14040 \end_inset
14041
14042  The advantage of this package (compared to other packages such as 
14043 \family typewriter
14044 multibib
14045 \family default
14046 ) is that you don't need to define new citation commands.
14047  Instead, you need to prepare different bibliographic databases which include
14048  the entries for the different sections of the bibliography.
14049  For example: If you want to divide your bibliography into the sections
14050  
14051 \begin_inset Quotes eld
14052 \end_inset
14053
14054 Sources
14055 \begin_inset Quotes erd
14056 \end_inset
14057
14058  and 
14059 \begin_inset Quotes eld
14060 \end_inset
14061
14062 Scientific works
14063 \begin_inset Quotes erd
14064 \end_inset
14065
14066 , you first need to create two bibliographic databases, e.
14067 \begin_inset space \thinspace{}
14068 \end_inset
14069
14070 g.
14071 \begin_inset space \space{}
14072 \end_inset
14073
14074
14075 \begin_inset Flex Code
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 sources.bib
14080 \end_layout
14081
14082 \end_inset
14083
14084  and 
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 scientific.bib
14090 \end_layout
14091
14092 \end_inset
14093
14094 .
14095  
14096 \end_layout
14097
14098 \begin_layout Standard
14099 Go to 
14100 \begin_inset Flex Noun
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 Document\SpecialChar menuseparator
14105 Settings
14106 \end_layout
14107
14108 \end_inset
14109
14110  and check under 
14111 \begin_inset Flex Noun
14112 status collapsed
14113
14114 \begin_layout Plain Layout
14115 Bibliography
14116 \end_layout
14117
14118 \end_inset
14119
14120  the option 
14121 \begin_inset Flex Noun
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Subdivided bibliography
14126 \end_layout
14127
14128 \end_inset
14129
14130 .
14131  Now you can insert multiple Bib\SpecialChar TeX
14132  bibliographies, one for each section of
14133  your bibliography.
14134  Returning to our example: Insert the Bib\SpecialChar TeX
14135  bibliography 
14136 \begin_inset Flex Code
14137 status collapsed
14138
14139 \begin_layout Plain Layout
14140 sources.bib
14141 \end_layout
14142
14143 \end_inset
14144
14145  and a second one for the database 
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 scientific.bib
14151 \end_layout
14152
14153 \end_inset
14154
14155 .
14156  You are free to use the same or different styles for each section.
14157  Additionally, you can choose if the bibliography section should contain
14158  
14159 \begin_inset Quotes eld
14160 \end_inset
14161
14162 all cited references
14163 \begin_inset Quotes erd
14164 \end_inset
14165
14166  of the specified database(s) (which is the default), 
14167 \begin_inset Quotes eld
14168 \end_inset
14169
14170 all uncited references
14171 \begin_inset Quotes erd
14172 \end_inset
14173
14174  or even 
14175 \begin_inset Quotes eld
14176 \end_inset
14177
14178 all references
14179 \begin_inset Quotes erd
14180 \end_inset
14181
14182 .
14183  This might be useful if you would like to separate your bibliography into
14184  three sections: 
14185 \begin_inset Quotes eld
14186 \end_inset
14187
14188 Cited sources
14189 \begin_inset Quotes erd
14190 \end_inset
14191
14192
14193 \begin_inset Quotes eld
14194 \end_inset
14195
14196 Uncited sources
14197 \begin_inset Quotes erd
14198 \end_inset
14199
14200 , and 
14201 \begin_inset Quotes eld
14202 \end_inset
14203
14204 Scientific works
14205 \begin_inset Quotes erd
14206 \end_inset
14207
14208 .
14209  The titles for the sections can be added as ordinary sections or subsections.
14210  Since 
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 bibtopic
14216 \end_layout
14217
14218 \end_inset
14219
14220  removes the bibliography title, you have to manually re-add that, too (as
14221  a chapter* or section*, for instance).
14222 \end_layout
14223
14224 \begin_layout Standard
14225 With 
14226 \family sans
14227 Biblatex
14228 \family default
14229 , the procedure is a bit different.
14230  Since 
14231 \family typewriter
14232 bibtopic
14233 \family default
14234  does not work with 
14235 \family sans
14236 Biblatex
14237 \family default
14238 , the aforementioned 
14239 \begin_inset Flex Noun
14240 status collapsed
14241
14242 \begin_layout Plain Layout
14243 Subdivided bibliography
14244 \end_layout
14245
14246 \end_inset
14247
14248  option is disabled if you use 
14249 \family sans
14250 Biblatex
14251 \family default
14252 .
14253  However, 
14254 \family sans
14255 Biblatex
14256 \family default
14257  provides its own means to generate subdivided bibliographies.
14258  You can either add keywords to bibliography entries via the 
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 keywords
14264 \end_layout
14265
14266 \end_inset
14267
14268  entry option and then filter bibliography sections by keyword (by adding
14269  
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 keyword=mykeyword
14275 \end_layout
14276
14277 \end_inset
14278
14279  to the 
14280 \begin_inset Flex Noun
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 Options
14285 \end_layout
14286
14287 \end_inset
14288
14289  field of the dialog that opens if you left-click on the 
14290 \begin_inset Flex Noun
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 Biblatex Generated Bibliography
14295 \end_layout
14296
14297 \end_inset
14298
14299  button), or you can filter by entry types (such as 
14300 \emph on
14301 book
14302 \emph default
14303  or 
14304 \emph on
14305 article
14306 \emph default
14307 ) by entering e.
14308 \begin_inset space \thinspace{}
14309 \end_inset
14310
14311 g.
14312  
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 type=book
14318 \end_layout
14319
14320 \end_inset
14321
14322  or 
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 nottype=collection
14328 \end_layout
14329
14330 \end_inset
14331
14332  to the mentioned 
14333 \begin_inset Flex Noun
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337 Options
14338 \end_layout
14339
14340 \end_inset
14341
14342  field, or you can create so-called 
14343 \begin_inset Quotes eld
14344 \end_inset
14345
14346 Bibliography Categories
14347 \begin_inset Quotes erd
14348 \end_inset
14349
14350  to which you can assign individual entries.
14351  Please refer to the Biblatex manual, section 
14352 \emph on
14353 Subdivided Bibliographies
14354 \emph default
14355 , for details.
14356 \end_layout
14357
14358 \begin_layout Subsection
14359 Multiple Bibliographies
14360 \begin_inset CommandInset label
14361 LatexCommand label
14362 name "subsec:Multiple-Bibliographies"
14363
14364 \end_inset
14365
14366
14367 \end_layout
14368
14369 \begin_layout Standard
14370 Multiple bibliographies, e.
14371 \begin_inset space \thinspace{}
14372 \end_inset
14373
14374 g.
14375 \begin_inset space \space{}
14376 \end_inset
14377
14378 a bibliography for each part, chapter, section, subsection or child (sub-documen
14379 t) of the document, are also supported by \SpecialChar LyX
14380 .
14381  In order to enable it, go to 
14382 \begin_inset Flex Noun
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 Document\SpecialChar menuseparator
14387 Settings\SpecialChar menuseparator
14388 Bibliography
14389 \end_layout
14390
14391 \end_inset
14392
14393  and select the relevant unit (e.
14394 \begin_inset space \thinspace{}
14395 \end_inset
14396
14397 g., 
14398 \begin_inset Quotes eld
14399 \end_inset
14400
14401 per section
14402 \begin_inset Quotes erd
14403 \end_inset
14404
14405 ) in the 
14406 \begin_inset Flex Noun
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 Multiple Bibliographies
14411 \end_layout
14412
14413 \end_inset
14414
14415  combo box.
14416  Then add a Bib(la)\SpecialChar TeX
14417  bibliography to each unit (e.
14418 \begin_inset space \thinspace{}
14419 \end_inset
14420
14421 g., section) of your document.
14422  In the output, a separate bibliography, containing only the references
14423  done in the current unit is generated.
14424 \end_layout
14425
14426 \begin_layout Standard
14427 If you use Bib\SpecialChar TeX
14428 , either the 
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 chapterbib
14434 \end_layout
14435
14436 \end_inset
14437
14438  or the 
14439 \begin_inset Flex Code
14440 status collapsed
14441
14442 \begin_layout Plain Layout
14443 bibtopic
14444 \end_layout
14445
14446 \end_inset
14447
14448  package is used to create multiple bibliographies.
14449  The former package is used if you select 
14450 \begin_inset Quotes eld
14451 \end_inset
14452
14453 per child document
14454 \begin_inset Quotes erd
14455 \end_inset
14456
14457  and do 
14458 \emph on
14459 not
14460 \emph default
14461  check 
14462 \begin_inset Flex Noun
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 Sectioned Bibliography
14467 \end_layout
14468
14469 \end_inset
14470
14471 .
14472  In all other cases, 
14473 \begin_inset Flex Code
14474 status collapsed
14475
14476 \begin_layout Plain Layout
14477 bibtopic
14478 \end_layout
14479
14480 \end_inset
14481
14482  is used.
14483 \begin_inset Foot
14484 status collapsed
14485
14486 \begin_layout Plain Layout
14487 An alternative approach, if you are willing to use some 
14488 \begin_inset Flex Noun
14489 status collapsed
14490
14491 \begin_layout Plain Layout
14492 \SpecialChar TeX
14493  Code
14494 \end_layout
14495
14496 \end_inset
14497
14498  (see section
14499 \begin_inset space ~
14500 \end_inset
14501
14502
14503 \begin_inset CommandInset ref
14504 LatexCommand ref
14505 reference "sec:Inserting-TeX-Code"
14506
14507 \end_inset
14508
14509 ), is to use the 
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 bibunits
14515 \end_layout
14516
14517 \end_inset
14518
14519  package.
14520 \end_layout
14521
14522 \end_inset
14523
14524  If 
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 bibtopic
14530 \end_layout
14531
14532 \end_inset
14533
14534  is used, \SpecialChar LyX
14535  encloses the specified units in 
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 bibtopic
14541 \end_layout
14542
14543 \end_inset
14544
14545 's 
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550
14551 \backslash
14552 begin{btUnit}
14553 \end_layout
14554
14555 \end_inset
14556
14557  and 
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562
14563 \backslash
14564 end{btUnit}
14565 \end_layout
14566
14567 \end_inset
14568
14569  in order to create the units.
14570  Note that this approach has some limitations.
14571  First, every citation reference has to be inside some 
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 btUnit
14577 \end_layout
14578
14579 \end_inset
14580
14581 .
14582  So citations outside a defined unit (e.
14583 \begin_inset space \thinspace{}
14584 \end_inset
14585
14586 g., before the first section if you use 
14587 \begin_inset Quotes eld
14588 \end_inset
14589
14590 by section
14591 \begin_inset Quotes erd
14592 \end_inset
14593
14594 ) will appear as 
14595 \begin_inset Quotes eld
14596 \end_inset
14597
14598 ???
14599 \begin_inset Quotes erd
14600 \end_inset
14601
14602 .
14603  You can also create your own units by entering 
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608
14609 \backslash
14610 begin{btUnit}
14611 \end_layout
14612
14613 \end_inset
14614
14615  and 
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620
14621 \backslash
14622 end{btUnit}
14623 \end_layout
14624
14625 \end_inset
14626
14627  as \SpecialChar TeX
14628  code (for instance to work around the mentioned limitation).
14629  Note, though, that 
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 btUnit
14635 \end_layout
14636
14637 \end_inset
14638
14639 s cannot be nested.
14640  A second limitation is that 
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 bibtopic
14646 \end_layout
14647
14648 \end_inset
14649
14650  always processes all references of a bibliography database, even if they
14651  are not cited.
14652  This can result in odd labels (e.
14653 \begin_inset space \thinspace{}
14654 \end_inset
14655
14656 g.
14657  
14658 \begin_inset Quotes eld
14659 \end_inset
14660
14661 Miller 2014b
14662 \begin_inset Quotes erd
14663 \end_inset
14664
14665  if two works of this author from 2014 are in the database, even if only
14666  one is cited).
14667 \end_layout
14668
14669 \begin_layout Standard
14670 If you use 
14671 \family sans
14672 Biblatex
14673 \family default
14674 , the 
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 refsection
14680 \end_layout
14681
14682 \end_inset
14683
14684  option is used instead.
14685  If you need specific units, you can start them with the \SpecialChar TeX
14686  code 
14687 \begin_inset Flex Code
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691
14692 \backslash
14693 newrefsection
14694 \end_layout
14695
14696 \end_inset
14697
14698  or 
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703
14704 \backslash
14705 newrefsegment
14706 \end_layout
14707
14708 \end_inset
14709
14710 , respectively.
14711  If you also want to control the end of the unit, use the environment 
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716
14717 \backslash
14718 begin{refsection}
14719 \end_layout
14720
14721 \end_inset
14722
14723  \SpecialChar ldots
14724  
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729
14730 \backslash
14731 end{refsection}
14732 \end_layout
14733
14734 \end_inset
14735
14736  instead.
14737  Note, though, that 
14738 \begin_inset Flex Code
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 refsection
14743 \end_layout
14744
14745 \end_inset
14746
14747 s cannot be nested.
14748  In addition to the individual bibliography of the current unit, 
14749 \family sans
14750 Biblatex
14751 \family default
14752  also provides an easy way to output all bibliographies, subsequently, at
14753  one place (e.
14754 \begin_inset space \thinspace{}
14755 \end_inset
14756
14757 g., at the end of the document).
14758  Select 
14759 \begin_inset Quotes eld
14760 \end_inset
14761
14762 all reference units
14763 \begin_inset Quotes erd
14764 \end_inset
14765
14766  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
14767  this.
14768  Please refer to the 
14769 \family sans
14770 Biblatex
14771 \family default
14772  manual for more information on this topic.
14773 \end_layout
14774
14775 \begin_layout Section
14776 Multipart Documents
14777 \end_layout
14778
14779 \begin_layout Subsection
14780 General Operation
14781 \end_layout
14782
14783 \begin_layout Standard
14784 When you are working on a large file with many sections, it is often convenient
14785  to break up the document into several files, or perhaps you have something
14786  where a table may change from time to time, but the preceding text does
14787  not.
14788  In these cases, you should seriously consider using multipart documents.
14789  For example, scientific papers often have five major sections: the introduction
14790 , observations, results, discussion, and conclusion.
14791  Each of these could be its own separate \SpecialChar LyX
14792  file, with one 
14793 \begin_inset Quotes eld
14794 \end_inset
14795
14796 master
14797 \begin_inset Quotes erd
14798 \end_inset
14799
14800  file which contains the title, authors, abstract, references, etc., plus
14801  the five included files.
14802  It is important to note that each of these files is a full \SpecialChar LyX
14803  file which
14804  can be formatted and printed on its own, as well as included in a master
14805  file.
14806  Each of these files must have the same document class, however—don't attempt
14807  to mix book classes with article classes.
14808  You may also include \SpecialChar LaTeX
14809  files; however, these files must not have their own
14810  preamble (i.
14811 \begin_inset space \thinspace{}
14812 \end_inset
14813
14814 e.
14815 \begin_inset space \space{}
14816 \end_inset
14817
14818 everything up to and including the 
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823
14824 \backslash
14825 begin{document}
14826 \end_layout
14827
14828 \end_inset
14829
14830  line as well as the 
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835
14836 \backslash
14837 end{document}
14838 \end_layout
14839
14840 \end_inset
14841
14842  line must be deleted) or else errors will be generated when you try to
14843  make a DVI file.
14844 \end_layout
14845
14846 \begin_layout Standard
14847 \SpecialChar LyX
14848  allows you to include files quite easily with 
14849 \begin_inset Flex Noun
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 Insert\SpecialChar menuseparator
14854 Child
14855 \begin_inset space ~
14856 \end_inset
14857
14858 Document
14859 \end_layout
14860
14861 \end_inset
14862
14863 .
14864  When you click on this selection a small box is inserted into the file
14865  at the current cursor location.
14866  Clicking on the box raises a dialog which allows you to select the file
14867  to be included, and the method of its inclusion.
14868  
14869 \end_layout
14870
14871 \begin_layout Standard
14872 The file selection box should by now be obvious.
14873  The three inclusion methods are 
14874 \begin_inset Quotes eld
14875 \end_inset
14876
14877 include
14878 \begin_inset Quotes erd
14879 \end_inset
14880
14881
14882 \begin_inset Quotes eld
14883 \end_inset
14884
14885 input
14886 \begin_inset Quotes erd
14887 \end_inset
14888
14889 , and 
14890 \begin_inset Quotes eld
14891 \end_inset
14892
14893 verbatim
14894 \begin_inset Quotes erd
14895 \end_inset
14896
14897 .
14898  The methods 
14899 \begin_inset Quotes eld
14900 \end_inset
14901
14902 include
14903 \begin_inset Quotes erd
14904 \end_inset
14905
14906  and 
14907 \begin_inset Quotes eld
14908 \end_inset
14909
14910 input
14911 \begin_inset Quotes erd
14912 \end_inset
14913
14914  are similar in many ways, but there are also some notable differences:
14915 \end_layout
14916
14917 \begin_layout Enumerate
14918 Files that are 
14919 \begin_inset Quotes eld
14920 \end_inset
14921
14922 included
14923 \begin_inset Quotes erd
14924 \end_inset
14925
14926  are typeset beginning on a new page, while files that are 
14927 \begin_inset Quotes eld
14928 \end_inset
14929
14930 inputted
14931 \begin_inset Quotes erd
14932 \end_inset
14933
14934  are typeset starting on the current page.
14935 \end_layout
14936
14937 \begin_layout Enumerate
14938 \begin_inset Quotes eld
14939 \end_inset
14940
14941 Included
14942 \begin_inset Quotes erd
14943 \end_inset
14944
14945  files cannot themselves 
14946 \begin_inset Quotes eld
14947 \end_inset
14948
14949 include
14950 \begin_inset Quotes erd
14951 \end_inset
14952
14953  further files (
14954 \begin_inset Quotes eld
14955 \end_inset
14956
14957 grandchilds
14958 \begin_inset Quotes erd
14959 \end_inset
14960
14961 ).
14962  With 
14963 \begin_inset Quotes eld
14964 \end_inset
14965
14966 input
14967 \begin_inset Quotes erd
14968 \end_inset
14969
14970 , on the other hand, infinite sub-inputting is possible.
14971 \end_layout
14972
14973 \begin_layout Enumerate
14974 \begin_inset Quotes eld
14975 \end_inset
14976
14977 Include
14978 \begin_inset Quotes erd
14979 \end_inset
14980
14981  allow for the output of only selected 
14982 \begin_inset Quotes eld
14983 \end_inset
14984
14985 included
14986 \begin_inset Quotes erd
14987 \end_inset
14988
14989  files, while maintaining the actual counters (pagination etc.) and references
14990  (please refer to the section 
14991 \emph on
14992 Child
14993 \begin_inset space ~
14994 \end_inset
14995
14996 Documents
14997 \emph default
14998  of the 
14999 \emph on
15000 Embedded
15001 \begin_inset space ~
15002 \end_inset
15003
15004 Objects
15005 \emph default
15006  manual for details).
15007 \end_layout
15008
15009 \begin_layout Standard
15010 Hence, 
15011 \begin_inset Quotes eld
15012 \end_inset
15013
15014 include
15015 \begin_inset Quotes erd
15016 \end_inset
15017
15018  is the preferred method for chapters that are outsourced to child documents,
15019  while 
15020 \begin_inset Quotes eld
15021 \end_inset
15022
15023 input
15024 \begin_inset Quotes erd
15025 \end_inset
15026
15027  is more suitable for arbitrary file inheritance.
15028 \end_layout
15029
15030 \begin_layout Standard
15031
15032 \begin_inset Quotes eld
15033 \end_inset
15034
15035 verbatim
15036 \begin_inset Quotes erd
15037 \end_inset
15038
15039  included file allows you to include a file typeset exactly as it appears
15040  in the file, i.
15041 \begin_inset space \thinspace{}
15042 \end_inset
15043
15044 e.
15045 \begin_inset space \space{}
15046 \end_inset
15047
15048 in 
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 verbatim
15054 \end_layout
15055
15056 \end_inset
15057
15058  mode, with the characters set in a fixed-width typewriter font.
15059  Normally, spaces in this file are invisible, though two consecutive spaces
15060  are conserved, unlike \SpecialChar LyX
15061 's normal treatment of spaces.
15062  However, setting the 
15063 \begin_inset Flex Noun
15064 status collapsed
15065
15066 \begin_layout Plain Layout
15067 Mark
15068 \begin_inset space ~
15069 \end_inset
15070
15071 spaces
15072 \begin_inset space ~
15073 \end_inset
15074
15075 in
15076 \begin_inset space ~
15077 \end_inset
15078
15079 output
15080 \end_layout
15081
15082 \end_inset
15083
15084  checkbox typesets a mark to unambiguously define the presence of a space.
15085  
15086 \end_layout
15087
15088 \begin_layout Standard
15089 Generally, the master file is converted into a full \SpecialChar LaTeX
15090  file before typesetting,
15091  while the included files are converted to \SpecialChar LaTeX
15092  files that do not have all the
15093  preamble information.
15094 \end_layout
15095
15096 \begin_layout Subsection
15097 Cross-References Between Files
15098 \end_layout
15099
15100 \begin_layout Standard
15101 \begin_inset Box Shadowbox
15102 position "t"
15103 hor_pos "c"
15104 has_inner_box 1
15105 inner_pos "t"
15106 use_parbox 0
15107 use_makebox 0
15108 width "100col%"
15109 special "none"
15110 height "1in"
15111 height_special "totalheight"
15112 thickness "0.4pt"
15113 separation "3pt"
15114 shadowsize "4pt"
15115 framecolor "black"
15116 backgroundcolor "none"
15117 status open
15118
15119 \begin_layout Plain Layout
15120 This section is somewhat out of date.
15121  Need to describe default master documents and how children are opened when
15122  the master is.
15123  [[FIXME]]
15124 \end_layout
15125
15126 \end_inset
15127
15128
15129 \end_layout
15130
15131 \begin_layout Standard
15132 It is possible to set up cross-references between the different files.
15133  First, open all the files in question: let's call them A and B in a two
15134  file example, where B is included in A.
15135  Let's say you insert a label in A, then want to reference it in B.
15136  Open the cross-reference dialog whilst in document B, and you can select
15137  the 
15138 \begin_inset Quotes eld
15139 \end_inset
15140
15141 buffer
15142 \begin_inset Quotes erd
15143 \end_inset
15144
15145  to use.
15146 \end_layout
15147
15148 \begin_layout Subsection
15149 Bibliography Lists in all Subdocuments
15150 \end_layout
15151
15152 \begin_layout Standard
15153 If you work with child documents, you might want to have only one main bibliogra
15154 phy at the end, but still be able to have a selected bibliography for the
15155  child if you output it on its own.
15156  Here is how to achieve this.
15157 \end_layout
15158
15159 \begin_layout Standard
15160 For the main document, you just insert a bibliography inset at the place
15161  where the main bibliography has to appear (within the master file or within
15162  a child).
15163  If the bibliography inset is in the master file, the references will be
15164  inherited by all children, so they are available in the citation dialog
15165  within each child.
15166 \end_layout
15167
15168 \begin_layout Standard
15169 For child-specific bibliographies, insert bibliography insets within the
15170  child documents, at the place where the bibliography should appear when
15171  the child is compiled separately.
15172  However, the trick is to insert them into a branch (
15173 \family sans
15174 Insert\SpecialChar menuseparator
15175 Branch\SpecialChar menuseparator
15176 Insert New Branch...
15177 \family default
15178 ), e.
15179 \begin_inset space \thinspace{}
15180 \end_inset
15181
15182 g.
15183  called 
15184 \begin_inset Quotes eld
15185 \end_inset
15186
15187 Childonly
15188 \begin_inset Quotes erd
15189 \end_inset
15190
15191 .
15192  Within the children, activate the branch (
15193 \family sans
15194 Document\SpecialChar menuseparator
15195 Settings...\SpecialChar menuseparator
15196 Branches
15197 \family default
15198 ).
15199  Within the master, deactivate the branch (
15200 \family sans
15201 Document\SpecialChar menuseparator
15202 Settings...\SpecialChar menuseparator
15203 Branches
15204 \family default
15205 ).
15206  Now the child's bibliography will be ignored by the master, but considered
15207  by the child.
15208 \end_layout
15209
15210 \begin_layout Standard
15211 If you need multiple bibliographies (e.
15212 \begin_inset space \thinspace{}
15213 \end_inset
15214
15215 g., one per child in the 
15216 \emph on
15217 main document
15218 \emph default
15219 ), please refer to sec.
15220 \begin_inset space ~
15221 \end_inset
15222
15223
15224 \begin_inset CommandInset ref
15225 LatexCommand ref
15226 reference "subsec:Multiple-Bibliographies"
15227
15228 \end_inset
15229
15230 .
15231 \end_layout
15232
15233 \begin_layout Section
15234 \SpecialChar LyX
15235  Archives
15236 \end_layout
15237
15238 \begin_layout Standard
15239 Users sometimes need to be able to 
15240 \begin_inset Quotes eld
15241 \end_inset
15242
15243 bundle
15244 \begin_inset Quotes erd
15245 \end_inset
15246
15247  a \SpecialChar LyX
15248  file together with all the images (and other files) on which it depends,
15249  either for sending to a publisher or for sharing with a co-author.
15250  \SpecialChar LyX
15251  includes a Python script (
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 lyxpak.py
15257 \end_layout
15258
15259 \end_inset
15260
15261 ) that automates this process.
15262  To use it, you must have either the 
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 zipfile
15268 \end_layout
15269
15270 \end_inset
15271
15272  or 
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 tarfile
15278 \end_layout
15279
15280 \end_inset
15281
15282  python modules installed on your system.
15283  By default, the script prefers the 
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 gzip
15289 \end_layout
15290
15291 \end_inset
15292
15293 -compressed 
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 tar
15299 \end_layout
15300
15301 \end_inset
15302
15303  format on Unix-like systems and the 
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 zip
15309 \end_layout
15310
15311 \end_inset
15312
15313  format on Windows.
15314 \end_layout
15315
15316 \begin_layout Standard
15317 \SpecialChar LyX
15318 's configuration process will set the script up to export a `\SpecialChar LyX
15319  Archive',
15320  and this format will then be available under 
15321 \begin_inset Flex Code
15322 status collapsed
15323
15324 \begin_layout Plain Layout
15325 File\SpecialChar menuseparator
15326 Export
15327 \end_layout
15328
15329 \end_inset
15330
15331 .
15332 \end_layout
15333
15334 \begin_layout Standard
15335 Independently of the platform, the generation of a particular archive format
15336  can be forced by adding either the 
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 -t
15342 \end_layout
15343
15344 \end_inset
15345
15346  (for the 
15347 \begin_inset Flex Code
15348 status collapsed
15349
15350 \begin_layout Plain Layout
15351 tar
15352 \end_layout
15353
15354 \end_inset
15355
15356  format) or 
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 -z
15362 \end_layout
15363
15364 \end_inset
15365
15366  (for the 
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 zip
15372 \end_layout
15373
15374 \end_inset
15375
15376  format) switch to the 
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 \SpecialChar LyX
15382 \SpecialChar menuseparator
15383 \SpecialChar LyX
15384  Archive
15385 \end_layout
15386
15387 \end_inset
15388
15389  converter in 
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 Tools\SpecialChar menuseparator
15395 Preferences\SpecialChar menuseparator
15396 File Handling\SpecialChar menuseparator
15397 Converters
15398 \end_layout
15399
15400 \end_inset
15401
15402 .
15403  (Make sure you add the switch after the script name, not before it.)
15404 \end_layout
15405
15406 \begin_layout Section
15407 Fancy Headers and Footers
15408 \end_layout
15409
15410 \begin_layout Standard
15411 The default page layout is rather plain; for an 
15412 \begin_inset Flex Code
15413 status collapsed
15414
15415 \begin_layout Plain Layout
15416 article
15417 \end_layout
15418
15419 \end_inset
15420
15421  document class, all you get is a centered page number at the bottom of
15422  the page.
15423  This document uses KOMA-script's book class, so it appears to be a bit
15424  fancier.
15425  But to really put on a show, you need to set the document page style to
15426  
15427 \begin_inset Quotes eld
15428 \end_inset
15429
15430 fancy
15431 \begin_inset Quotes erd
15432 \end_inset
15433
15434 , as mentioned in the 
15435 \emph on
15436 User Guide
15437 \emph default
15438 .
15439  This section describes the \SpecialChar LaTeX
15440  code you need to insert in your \SpecialChar LaTeX
15441  preamble in
15442  order to get the desired effects.
15443 \end_layout
15444
15445 \begin_layout Standard
15446 For more information on fancy headers, see the 
15447 \begin_inset Flex Code
15448 status collapsed
15449
15450 \begin_layout Plain Layout
15451 fancyhdr
15452 \end_layout
15453
15454 \end_inset
15455
15456  package documentation.
15457  (
15458 \begin_inset Flex URL
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462
15463 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
15464 \end_layout
15465
15466 \end_inset
15467
15468 )
15469 \end_layout
15470
15471 \begin_layout Standard
15472 The page header is divided into three fields, not surprisingly labeled 
15473 \begin_inset Quotes eld
15474 \end_inset
15475
15476 left
15477 \begin_inset Quotes erd
15478 \end_inset
15479
15480
15481 \begin_inset Quotes eld
15482 \end_inset
15483
15484 center
15485 \begin_inset Quotes erd
15486 \end_inset
15487
15488 , and 
15489 \begin_inset Quotes eld
15490 \end_inset
15491
15492 right
15493 \begin_inset Quotes erd
15494 \end_inset
15495
15496 .
15497  The footer is also divided into these three fields.
15498  The \SpecialChar LaTeX
15499  commands to set these fields in the simplest manner are 
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504
15505 \backslash
15506 lhead
15507 \end_layout
15508
15509 \end_inset
15510
15511
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516
15517 \backslash
15518 chead
15519 \end_layout
15520
15521 \end_inset
15522
15523
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528
15529 \backslash
15530 rhead
15531 \end_layout
15532
15533 \end_inset
15534
15535
15536 \begin_inset Flex Code
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540
15541 \backslash
15542 lfoot
15543 \end_layout
15544
15545 \end_inset
15546
15547 , etc.
15548  Suppose you wish to put your name in the upper left hand corner of each
15549  page.
15550  Simply insert the following command in the preamble: 
15551 \end_layout
15552
15553 \begin_layout Standard
15554
15555 \family typewriter
15556
15557 \backslash
15558 lhead{John Q.
15559  DocWriter}
15560 \end_layout
15561
15562 \begin_layout Standard
15563 You will now see your name in the upper left.
15564  If a field has a default entry that you would like to get rid of (often
15565  the page number appears in the central footer) simply include a command
15566  with a blank argument, e.
15567 \begin_inset space \thinspace{}
15568 \end_inset
15569
15570 g.:
15571 \end_layout
15572
15573 \begin_layout Standard
15574
15575 \family typewriter
15576
15577 \backslash
15578 cfoot{}
15579 \end_layout
15580
15581 \begin_layout Standard
15582 Let's get really fancy: lets put the section number with the word 
15583 \begin_inset Quotes eld
15584 \end_inset
15585
15586 Section
15587 \begin_inset Quotes erd
15588 \end_inset
15589
15590  (e.
15591 \begin_inset space \thinspace{}
15592 \end_inset
15593
15594 g.
15595 \begin_inset space \space{}
15596 \end_inset
15597
15598 Section 3) in the upper left, the page number (e.
15599 \begin_inset space \thinspace{}
15600 \end_inset
15601
15602 g.
15603 \begin_inset space \space{}
15604 \end_inset
15605
15606 Page 4) in the upper right, your name in the lower left, and the date in
15607  the lower right.
15608  The following commands should now appear in the preamble:
15609 \end_layout
15610
15611 \begin_layout Standard
15612
15613 \family typewriter
15614
15615 \backslash
15616 lhead{Section 
15617 \backslash
15618 thesection}
15619 \end_layout
15620
15621 \begin_layout Standard
15622
15623 \family typewriter
15624
15625 \backslash
15626 chead{}
15627 \end_layout
15628
15629 \begin_layout Standard
15630
15631 \family typewriter
15632
15633 \backslash
15634 rhead{Page 
15635 \backslash
15636 thepage}
15637 \end_layout
15638
15639 \begin_layout Standard
15640
15641 \family typewriter
15642
15643 \backslash
15644 lfoot{John Q.
15645  DocWriter}
15646 \end_layout
15647
15648 \begin_layout Standard
15649
15650 \family typewriter
15651
15652 \backslash
15653 cfoot{}
15654 \end_layout
15655
15656 \begin_layout Standard
15657
15658 \family typewriter
15659
15660 \backslash
15661 rfoot{
15662 \backslash
15663 today}
15664 \end_layout
15665
15666 \begin_layout Standard
15667 The commands 
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672
15673 \backslash
15674 thesection
15675 \end_layout
15676
15677 \end_inset
15678
15679  and 
15680 \begin_inset Flex Code
15681 status collapsed
15682
15683 \begin_layout Plain Layout
15684
15685 \backslash
15686 thepage
15687 \end_layout
15688
15689 \end_inset
15690
15691  access \SpecialChar LaTeX
15692 's section and page counters, and so print out the current section
15693  and page number.
15694  
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699
15700 \backslash
15701 today
15702 \end_layout
15703
15704 \end_inset
15705
15706  simply prints out today's date.
15707 \end_layout
15708
15709 \begin_layout Standard
15710 The thicknesses of the horizontal rules drawn beneath the header and above
15711  the footer can also be modified.
15712  If you don't want one of the rules, set its thickness to 0.
15713  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
15714  Use commands
15715 \family typewriter
15716  
15717 \family default
15718 like 
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723
15724 \backslash
15725 renewcommand{
15726 \backslash
15727 headrulewidth}{0.4pt}
15728 \end_layout
15729
15730 \end_inset
15731
15732  and 
15733 \begin_inset Flex Code
15734 status collapsed
15735
15736 \begin_layout Plain Layout
15737
15738 \backslash
15739 renewcommand{
15740 \backslash
15741 footrulewidth}{0.4pt}
15742 \end_layout
15743
15744 \end_inset
15745
15746  to set the thicknesses.
15747 \end_layout
15748
15749 \begin_layout Standard
15750 You can switch the header/footer settings on and off for individual pages
15751  using commands like 
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756
15757 \backslash
15758 thispagestyle{empty}
15759 \end_layout
15760
15761 \end_inset
15762
15763
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768
15769 \backslash
15770 thispagestyle{plain}
15771 \end_layout
15772
15773 \end_inset
15774
15775 , and 
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780
15781 \backslash
15782 thispagestyle{fancy}
15783 \end_layout
15784
15785 \end_inset
15786
15787 .
15788  Simply insert them in the text on the page you want changed and mark them
15789  as \SpecialChar TeX
15790  code.
15791  In fact, title pages are marked as plain by default, while following pages
15792  are marked fancy when using the global fancy setting.
15793 \end_layout
15794
15795 \begin_layout Standard
15796 As a final example, it is possible to include an image in the header or
15797  footer.
15798  Suppose you want to put a company logo in the upper lefthand corner.
15799  You might try something like
15800 \end_layout
15801
15802 \begin_layout Standard
15803
15804 \family typewriter
15805
15806 \backslash
15807 lhead{
15808 \backslash
15809 resizebox{1in}{!}{
15810 \backslash
15811 includegraphics{logo.eps}}}
15812 \end_layout
15813
15814 \begin_layout Standard
15815 \noindent
15816 (you may need to preface this with 
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821
15822 \backslash
15823 usepackage{graphics}
15824 \end_layout
15825
15826 \end_inset
15827
15828  if you don't include graphics elsewhere in your document).
15829 \end_layout
15830
15831 \begin_layout Section
15832 Itemize Bullet Selection
15833 \begin_inset CommandInset label
15834 LatexCommand label
15835 name "sec:bullet"
15836
15837 \end_inset
15838
15839
15840 \end_layout
15841
15842 \begin_layout Standard
15843 by
15844 \noun on
15845  Allan Rae
15846 \end_layout
15847
15848 \begin_layout Subsection
15849 Introduction
15850 \end_layout
15851
15852 \begin_layout Standard
15853 \SpecialChar LyX
15854  provides 216 bullet shapes that can be accessed from a simple dialog.
15855  Using this dialog you can easily specify what bullet shape to use at each
15856  level of an itemized list.
15857  These settings are document-wide so you won't be able to specify different
15858  sets of bullets for different paragraphs.
15859 \begin_inset Foot
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863 Well, actually you can but you'll have to do it by hand.
15864 \end_layout
15865
15866 \end_inset
15867
15868
15869 \end_layout
15870
15871 \begin_layout Subsection
15872 How it looks
15873 \end_layout
15874
15875 \begin_layout Standard
15876 Open the dialog by selecting the 
15877 \begin_inset Flex Noun
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 Document\SpecialChar menuseparator
15882 Settings
15883 \end_layout
15884
15885 \end_inset
15886
15887  menu item and then select the 
15888 \begin_inset Flex Noun
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 Bullets
15893 \end_layout
15894
15895 \end_inset
15896
15897  tab.
15898 \end_layout
15899
15900 \begin_layout Standard
15901 The dialog provides you with a table of bullet shapes.
15902  A column of buttons on the left of the table provides access to the six
15903  different panels of bullet shapes.
15904  The row of buttons across the top is used to select which bullet depth
15905  you are changing.
15906
15907 \change_deleted 244031559 1603875981
15908  A text entry under the table shows the currently selected bullet shape's
15909  \SpecialChar LaTeX
15910  equivalent and this can be edited if desired.
15911  If you do modify the text you will also need to specify any needed packages
15912  in the \SpecialChar LaTeX
15913  preamble.
15914 \change_unchanged
15915
15916 \end_layout
15917
15918 \begin_layout Standard
15919 The six panels are divided up by the packages they require.
15920  The following table shows the mappings from button name to \SpecialChar LaTeX
15921  package.
15922 \end_layout
15923
15924 \begin_layout Standard
15925 \align center
15926 \begin_inset Tabular
15927 <lyxtabular version="3" rows="7" columns="2">
15928 <features tabularvalignment="middle">
15929 <column alignment="center" valignment="top" width="0pt">
15930 <column alignment="center" valignment="top" width="0pt">
15931 <row>
15932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15933 \begin_inset Text
15934
15935 \begin_layout Plain Layout
15936
15937 \family roman
15938 \series medium
15939 \shape up
15940 \size normal
15941 \emph off
15942 \bar no
15943 \noun off
15944 \color none
15945 Button
15946 \end_layout
15947
15948 \end_inset
15949 </cell>
15950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15951 \begin_inset Text
15952
15953 \begin_layout Plain Layout
15954
15955 \family roman
15956 \series medium
15957 \shape up
15958 \size normal
15959 \emph off
15960 \bar no
15961 \noun off
15962 \color none
15963 Packages Required
15964 \end_layout
15965
15966 \end_inset
15967 </cell>
15968 </row>
15969 <row>
15970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15971 \begin_inset Text
15972
15973 \begin_layout Plain Layout
15974
15975 \family sans
15976 \series medium
15977 \shape up
15978 \size normal
15979 \emph off
15980 \bar no
15981 \noun off
15982 \color none
15983 Standard
15984 \end_layout
15985
15986 \end_inset
15987 </cell>
15988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15989 \begin_inset Text
15990
15991 \begin_layout Plain Layout
15992
15993 \series medium
15994 \shape up
15995 \size normal
15996 \emph off
15997 \bar no
15998 \noun off
15999 \color none
16000 base \SpecialChar LaTeX
16001
16002 \end_layout
16003
16004 \end_inset
16005 </cell>
16006 </row>
16007 <row>
16008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16009 \begin_inset Text
16010
16011 \begin_layout Plain Layout
16012
16013 \family sans
16014 \series medium
16015 \shape up
16016 \size normal
16017 \emph off
16018 \bar no
16019 \noun off
16020 \color none
16021 Maths
16022 \end_layout
16023
16024 \end_inset
16025 </cell>
16026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16027 \begin_inset Text
16028
16029 \begin_layout Plain Layout
16030
16031 \family typewriter
16032 \series medium
16033 \shape up
16034 \size normal
16035 \emph off
16036 \bar no
16037 \noun off
16038 \color none
16039 amssymb.sty
16040 \end_layout
16041
16042 \end_inset
16043 </cell>
16044 </row>
16045 <row>
16046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16047 \begin_inset Text
16048
16049 \begin_layout Plain Layout
16050
16051 \family sans
16052 \series medium
16053 \shape up
16054 \size normal
16055 \emph off
16056 \bar no
16057 \noun off
16058 \color none
16059 Ding1
16060 \end_layout
16061
16062 \end_inset
16063 </cell>
16064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16065 \begin_inset Text
16066
16067 \begin_layout Plain Layout
16068
16069 \family typewriter
16070 \series medium
16071 \shape up
16072 \size normal
16073 \emph off
16074 \bar no
16075 \noun off
16076 \color none
16077 pifont.sty
16078 \end_layout
16079
16080 \end_inset
16081 </cell>
16082 </row>
16083 <row>
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16085 \begin_inset Text
16086
16087 \begin_layout Plain Layout
16088
16089 \family sans
16090 \series medium
16091 \shape up
16092 \size normal
16093 \emph off
16094 \bar no
16095 \noun off
16096 \color none
16097 Ding2
16098 \end_layout
16099
16100 \end_inset
16101 </cell>
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_inset Text
16104
16105 \begin_layout Plain Layout
16106
16107 \family typewriter
16108 \series medium
16109 \shape up
16110 \size normal
16111 \emph off
16112 \bar no
16113 \noun off
16114 \color none
16115 pifont.sty
16116 \end_layout
16117
16118 \end_inset
16119 </cell>
16120 </row>
16121 <row>
16122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16123 \begin_inset Text
16124
16125 \begin_layout Plain Layout
16126
16127 \family sans
16128 \series medium
16129 \shape up
16130 \size normal
16131 \emph off
16132 \bar no
16133 \noun off
16134 \color none
16135 Ding3
16136 \end_layout
16137
16138 \end_inset
16139 </cell>
16140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16141 \begin_inset Text
16142
16143 \begin_layout Plain Layout
16144
16145 \family typewriter
16146 \series medium
16147 \shape up
16148 \size normal
16149 \emph off
16150 \bar no
16151 \noun off
16152 \color none
16153 pifont.sty
16154 \end_layout
16155
16156 \end_inset
16157 </cell>
16158 </row>
16159 <row>
16160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16161 \begin_inset Text
16162
16163 \begin_layout Plain Layout
16164
16165 \family sans
16166 \series medium
16167 \shape up
16168 \size normal
16169 \emph off
16170 \bar no
16171 \noun off
16172 \color none
16173 Ding4
16174 \end_layout
16175
16176 \end_inset
16177 </cell>
16178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16179 \begin_inset Text
16180
16181 \begin_layout Plain Layout
16182
16183 \family typewriter
16184 \series medium
16185 \shape up
16186 \size normal
16187 \emph off
16188 \bar no
16189 \noun off
16190 \color none
16191 pifont.sty
16192 \end_layout
16193
16194 \end_inset
16195 </cell>
16196 </row>
16197 </lyxtabular>
16198
16199 \end_inset
16200
16201
16202 \end_layout
16203
16204 \begin_layout Standard
16205 \SpecialChar LyX
16206  doesn't stop you using bullets from packages you don't have.
16207  If you get errors from \SpecialChar LaTeX
16208  when you try to view or print the file, then it
16209  is likely you are missing a package.
16210 \begin_inset Foot
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 \SpecialChar LyX
16215  doesn't restrict your use since you may be editing locally and exporting
16216  elsewhere.
16217 \end_layout
16218
16219 \end_inset
16220
16221
16222 \end_layout
16223
16224 \begin_layout Subsection
16225 How to use it
16226 \end_layout
16227
16228 \begin_layout Standard
16229 Select which bullet depth you want to change then select the bullet shape
16230  and size.
16231  Any changes will not be visible in \SpecialChar LyX
16232 , but are visible when viewing the document.
16233 \end_layout
16234
16235 \begin_layout Standard
16236 You can reset a bullet shape to the default simply by clicking your right
16237  mouse button on the appropriate bullet depth button.
16238 \begin_inset Foot
16239 status open
16240
16241 \begin_layout Plain Layout
16242 If you 
16243 \emph on
16244 really
16245 \emph default
16246  want to have multiple sets of paragraphs with different sets of bullets
16247  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
16248  code.
16249  The bullet selection dialog can help though because it provides you with
16250  the \SpecialChar LaTeX
16251  code for a wide range of bullet shapes.
16252  To make your own custom paragraphs you have the following options:
16253 \end_layout
16254
16255 \begin_layout Plain Layout
16256 \begin_inset ERT
16257 status open
16258
16259 \begin_layout Plain Layout
16260
16261
16262 \backslash
16263 let
16264 \backslash
16265 savelabelitemi=
16266 \backslash
16267 labelitemi
16268 \end_layout
16269
16270 \end_inset
16271
16272
16273 \end_layout
16274
16275 \begin_layout Plain Layout
16276 \begin_inset ERT
16277 status open
16278
16279 \begin_layout Plain Layout
16280
16281
16282 \backslash
16283 renewcommand
16284 \backslash
16285 labelitemi[0]{
16286 \backslash
16287 small
16288 \backslash
16289 (
16290 \backslash
16291 sharp
16292 \backslash
16293 )}
16294 \end_layout
16295
16296 \end_inset
16297
16298
16299 \end_layout
16300
16301 \begin_layout Itemize
16302 Use the \SpecialChar LaTeX
16303  command 
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308
16309 \backslash
16310 renewcommand{}{}
16311 \end_layout
16312
16313 \end_inset
16314
16315  to specify a new bullet shape for a given depth.
16316  You'll also need to save the current bullet shape so you can restore it
16317  again afterwards.
16318  In this itemized list the following \SpecialChar LaTeX
16319  code was used to change the bullet
16320  used for the first depth.
16321 \end_layout
16322
16323 \begin_deeper
16324 \begin_layout LyX-Code
16325
16326 \backslash
16327 let
16328 \backslash
16329 savelabelitemi=
16330 \backslash
16331 labelitemi 
16332 \end_layout
16333
16334 \begin_layout LyX-Code
16335
16336 \backslash
16337 renewcommand
16338 \backslash
16339 labelitemi[0]{
16340 \backslash
16341 small
16342 \backslash
16343 (
16344 \backslash
16345 sharp
16346 \backslash
16347 )}
16348 \end_layout
16349
16350 \end_deeper
16351 \begin_layout Itemize
16352 Note that the itemize depth is specified in Roman numerals as part of the
16353  
16354 \family typewriter
16355
16356 \backslash
16357 labelitem
16358 \family default
16359  command.
16360 \end_layout
16361
16362 \begin_layout Itemize
16363 \begin_inset Argument item:1
16364 status open
16365
16366 \begin_layout Plain Layout
16367 \begin_inset ERT
16368 status open
16369
16370 \begin_layout Plain Layout
16371
16372
16373 \backslash
16374 (
16375 \backslash
16376 star
16377 \backslash
16378 )
16379 \end_layout
16380
16381 \end_inset
16382
16383
16384 \end_layout
16385
16386 \end_inset
16387
16388  Specify each individual entry by starting each item with the bullet shape
16389  enclosed in a 
16390 \begin_inset Quotes eld
16391 \end_inset
16392
16393 Custom Item
16394 \begin_inset Quotes erd
16395 \end_inset
16396
16397  inset (available at 
16398 \family sans
16399 Insert\SpecialChar menuseparator
16400 Custom Item
16401 \family default
16402 ) and set as 
16403 \begin_inset Flex Noun
16404 status collapsed
16405
16406 \begin_layout Plain Layout
16407 \SpecialChar TeX
16408  Code
16409 \end_layout
16410
16411 \end_inset
16412
16413 .
16414  For example, this item was started with 
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419
16420 \backslash
16421 (
16422 \backslash
16423 star
16424 \backslash
16425 )
16426 \end_layout
16427
16428 \end_inset
16429
16430 .
16431 \end_layout
16432
16433 \begin_layout Plain Layout
16434 \begin_inset ERT
16435 status open
16436
16437 \begin_layout Plain Layout
16438
16439
16440 \backslash
16441 renewcommand
16442 \backslash
16443 labelitemi[0]{
16444 \backslash
16445 savelabelitemi}
16446 \end_layout
16447
16448 \end_inset
16449
16450
16451 \end_layout
16452
16453 \begin_layout Plain Layout
16454 You'll also need to revert the labelitem back to its previous setting for
16455  the global bullet shape settings to remain in effect.
16456  The way used here was:
16457 \end_layout
16458
16459 \begin_layout LyX-Code
16460
16461 \backslash
16462 renewcommand
16463 \backslash
16464 labelitemi[0]{
16465 \backslash
16466 savelabelitemi}
16467 \end_layout
16468
16469 \end_inset
16470
16471
16472 \end_layout
16473
16474 \begin_layout Chapter
16475 \SpecialChar LyX
16476  and the World Wide Web
16477 \end_layout
16478
16479 \begin_layout Standard
16480 \SpecialChar LyX
16481  has long supported the export of documents to various web-friendly formats,
16482  such as HTML.
16483  Before version 2.0, however, HTML export was always accomplished by the
16484  use of external converters.
16485 \begin_inset Foot
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 For details on the use of external converters with \SpecialChar LyX
16490 , see the 
16491 \emph on
16492 Converters
16493 \emph default
16494  section of the Customization manual.
16495 \end_layout
16496
16497 \end_inset
16498
16499  These fall into two large groups: there are converters that use \SpecialChar LaTeX
16500  as an
16501  intermediate format, such as 
16502 \begin_inset Flex Code
16503 status collapsed
16504
16505 \begin_layout Plain Layout
16506 htlatex
16507 \end_layout
16508
16509 \end_inset
16510
16511
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 html2latex
16517 \end_layout
16518
16519 \end_inset
16520
16521 , and 
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526 plastex
16527 \end_layout
16528
16529 \end_inset
16530
16531 , relying upon \SpecialChar LyX
16532  to produce the \SpecialChar LaTeX
16533 ; and there is a converter that works directly
16534  on \SpecialChar LyX
16535  files, 
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 e\SpecialChar LyX
16541 er
16542 \end_layout
16543
16544 \end_inset
16545
16546 .
16547  All of these have different advantages and disadvantages.
16548  
16549 \end_layout
16550
16551 \begin_layout Standard
16552 The \SpecialChar LaTeX
16553 -based converters have the advantage that, in principle, they know everythin
16554 g about the exported document that \SpecialChar LaTeX
16555  does.
16556  Such converters do not care, for example, if a certain block of code was
16557  produced by \SpecialChar LyX
16558  or was Evil Red Text.
16559  These converters know about 
16560 \begin_inset Flex Code
16561 status collapsed
16562
16563 \begin_layout Plain Layout
16564 aux
16565 \end_layout
16566
16567 \end_inset
16568
16569  files, counters, and references, and can often make use of the 
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 bbl
16575 \end_layout
16576
16577 \end_inset
16578
16579  files generated by Bib\SpecialChar TeX
16580 .
16581  On the other hand, \SpecialChar LaTeX
16582  is a very hard language to parse—it is sometimes said
16583  that only \SpecialChar TeX
16584  itself understands \SpecialChar TeX
16585 —and \SpecialChar LaTeX
16586 -based converters will often choke on
16587  what seem to be quite simple constructs; complex ones can throw them completely
16588 , and as of this writing, for example, the 
16589 \emph on
16590 Embedded Objects
16591 \emph default
16592  manual will not export with 
16593 \begin_inset Flex Code
16594 status collapsed
16595
16596 \begin_layout Plain Layout
16597 htlatex
16598 \end_layout
16599
16600 \end_inset
16601
16602 , though the others will.
16603  The other issue concerns how math is handled.
16604  These converters typically convert the formulae into little pictures that
16605  are then linked from the HTML document.
16606  Since these are actually generated by \SpecialChar LaTeX
16607 , they are accurate.
16608  But they do not scale well, and just getting them to look as if they are
16609  actually meant to be in your document—so that the font sizes seem to be
16610  roughly the same—can be a challenge.
16611 \end_layout
16612
16613 \begin_layout Standard
16614 Alex Fernandez's 
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 e\SpecialChar LyX
16620 er
16621 \end_layout
16622
16623 \end_inset
16624
16625  (
16626 \begin_inset CommandInset href
16627 LatexCommand href
16628 name "http://pinchito.es/elyxer/"
16629 target "http://pinchito.es/elyxer/"
16630 literal "false"
16631
16632 \end_inset
16633
16634 ) solves some of these problems.
16635  In particular, the formulae it produces scale perfectly, since it renders
16636  math using a combination of HTML and CSS rather than converting the formulae
16637  to images.
16638  But even moderately complex formula are rendered less well than with 
16639 \begin_inset Flex Code
16640 status collapsed
16641
16642 \begin_layout Plain Layout
16643 htlatex
16644 \end_layout
16645
16646 \end_inset
16647
16648 ; this reflects the limitations of HTML.
16649 \begin_inset Foot
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 That said, 
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 e\SpecialChar LyX
16659 er
16660 \end_layout
16661
16662 \end_inset
16663
16664  can also use jsMath and MathJax for equations, but this setting is only
16665  available globally and requires one to have access to a server that runs
16666  the backend.
16667 \end_layout
16668
16669 \end_inset
16670
16671  More importantly (as of version 1.1.1, at least), 
16672 \begin_inset Flex Code
16673 status collapsed
16674
16675 \begin_layout Plain Layout
16676 e\SpecialChar LyX
16677 er
16678 \end_layout
16679
16680 \end_inset
16681
16682  has limited support for math macros and no support for user-defined paragraph
16683  or character styles.
16684  These limitations make 
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689 e\SpecialChar LyX
16690 er
16691 \end_layout
16692
16693 \end_inset
16694
16695  unsuitable for many of the documents \SpecialChar LyX
16696  users produce.
16697  In principle, of course, these problems could be solved, but the \SpecialChar LyX
16698  developers
16699  have decided to follow a different path and have made \SpecialChar LyX
16700  itself capable of
16701  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
16702 , DocBook, and plaintext.
16703 \end_layout
16704
16705 \begin_layout Standard
16706 As of this writing, XHTML output remains under development and should probably
16707  be regarded as 
16708 \begin_inset Quotes eld
16709 \end_inset
16710
16711 experimental
16712 \begin_inset Quotes erd
16713 \end_inset
16714
16715 .
16716 \begin_inset Foot
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720 The file 
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 development/HTML/HTML.notes
16726 \end_layout
16727
16728 \end_inset
16729
16730 , which can be found in the \SpecialChar LyX
16731  source tree or 
16732 \begin_inset CommandInset href
16733 LatexCommand href
16734 name "accessed online"
16735 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
16736 literal "false"
16737
16738 \end_inset
16739
16740 , usually contains up-to-date information about the state of XHTML output.
16741  See also the list of XHTML bugs on 
16742 \begin_inset CommandInset href
16743 LatexCommand href
16744 name "the bug tracker"
16745 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"
16746 literal "false"
16747
16748 \end_inset
16749
16750 .
16751 \end_layout
16752
16753 \end_inset
16754
16755  Still, the developers have chosen this approach because it has several
16756  potential advantages over the other two.
16757 \end_layout
16758
16759 \begin_layout Standard
16760 These advantages are primarily due to the fact that the XHTML output routines,
16761  since they are part of \SpecialChar LyX
16762 , know everything \SpecialChar LyX
16763  knows about the document being
16764  exported.
16765 \begin_inset Foot
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769 Another advantage is that, since these routines are internal to \SpecialChar LyX
16770 , they are
16771  immune to changes in \SpecialChar LyX
16772 's file format, or to changes in the semantics of
16773  existing insets.
16774 \end_layout
16775
16776 \end_inset
16777
16778  So they know about the table of contents (as displayed in the outline),
16779  about the counters associated with different paragraph styles, and about
16780  user-defined styles.
16781  The XHTML output routines know what \SpecialChar LyX
16782  knows about internationalization,
16783  too, so they will output 
16784 \begin_inset Quotes eld
16785 \end_inset
16786
16787 Chapter 1
16788 \begin_inset Quotes erd
16789 \end_inset
16790
16791  or 
16792 \begin_inset Quotes eld
16793 \end_inset
16794
16795
16796 \lang ngerman
16797 Kapitel
16798 \lang english
16799  1
16800 \begin_inset Quotes erd
16801 \end_inset
16802
16803 , depending upon the language in effect at the time.
16804  
16805 \end_layout
16806
16807 \begin_layout Standard
16808 Quite generally, the output routines know what \SpecialChar LyX
16809  knows about document layout,
16810  that is, about how the document is to be rendered on screen.
16811  We use this information when we output the document as XHTML.
16812  In particular, \SpecialChar LyX
16813  
16814 \emph on
16815 automatically
16816 \emph default
16817  generates CSS style information corresponding to the layout information
16818  it uses to render the document on screen: if section headings are supposed
16819  to be sans-serif and bold as seen in \SpecialChar LyX
16820 , then (by default) they will be sans-seri
16821 f and bold when viewed in a web browser, too.
16822  And this is true not just for pre-defined styles, like Section, but for
16823  any style, including user-defined styles.
16824  Indeed, the XHTML output routines make no distinction between user-defined
16825  paragraph and 
16826 \change_deleted 244031559 1603876931
16827 character
16828 \change_inserted 244031559 1603876940
16829 text
16830 \change_unchanged
16831  styles and \SpecialChar LyX
16832 's own pre-defined styles: in each case, everything \SpecialChar LyX
16833  knows about
16834  the styles is contained in the layout files.
16835  And much the same is true as regards pre-defined textual insets, such as
16836  footnotes, and various custom insets.
16837  
16838 \end_layout
16839
16840 \begin_layout Standard
16841 The result is that XHTML output can be customized and extended in exactly
16842  the same way \SpecialChar LaTeX
16843  output can be customized and extended: through layout files
16844  and modules.
16845  See chapter five of the 
16846 \emph on
16847 Customization 
16848 \emph default
16849 manual for the details.
16850 \end_layout
16851
16852 \begin_layout Standard
16853 The remainder of this chapter contains more detailed information on XHTML
16854  output, its limitations, and ways to work around those limitations.
16855 \end_layout
16856
16857 \begin_layout Section
16858 Math Output in XHTML
16859 \end_layout
16860
16861 \begin_layout Standard
16862 \SpecialChar LyX
16863  offers four choices for how math is rendered.
16864  These have various advantages and disadvantages:
16865 \end_layout
16866
16867 \begin_layout Itemize
16868 MathML
16869 \begin_inset Newline newline
16870 \end_inset
16871
16872 MathML is a dialect of XML designed specifically for mathematics on the
16873  web, and it typically renders very well in browsers that support it.
16874  The disadvantage is that not all browsers support MathML, and support is
16875  not complete even in the Gecko-based browsers, such as Firefox.
16876 \begin_inset Newline newline
16877 \end_inset
16878
16879 If \SpecialChar LyX
16880  is unable to render a formula as MathML—for example, if the formula
16881  uses the 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 xymatrix
16887 \end_layout
16888
16889 \end_inset
16890
16891  package or ERT—then it will instead output the formula as an image.
16892  
16893 \end_layout
16894
16895 \begin_layout Itemize
16896 HTML
16897 \begin_inset Newline newline
16898 \end_inset
16899
16900 As mentioned above, 
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 elyxer
16906 \end_layout
16907
16908 \end_inset
16909
16910  outputs math as HTML, styled by CSS.
16911 \begin_inset Foot
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 \SpecialChar LyX
16916  has borrowed some of the CSS for its HTML output from 
16917 \begin_inset Flex Code
16918 status collapsed
16919
16920 \begin_layout Plain Layout
16921 elyxer
16922 \end_layout
16923
16924 \end_inset
16925
16926 .
16927 \end_layout
16928
16929 \end_inset
16930
16931  For simple formulae, this can work quite well, though with more complicated
16932  formulae it tends to break down.
16933  Still, this method has the advantage that it is very widely supported and
16934  so it may be appropriate for documents that contain only a little, fairly
16935  simple math.
16936 \begin_inset Newline newline
16937 \end_inset
16938
16939 If Lyx is unable to render a formula as HTML—for example, if the formula
16940  uses the 
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 xymatrix
16946 \end_layout
16947
16948 \end_inset
16949
16950  package or ERT—then it will instead output the formula as an image.
16951  
16952 \end_layout
16953
16954 \begin_layout Itemize
16955 Images
16956 \begin_inset Newline newline
16957 \end_inset
16958
16959 Like 
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 htlatex
16965 \end_layout
16966
16967 \end_inset
16968
16969 , \SpecialChar LyX
16970  will output formulae as images, the very same images, in fact, that are
16971  used for instant preview.
16972 \begin_inset Foot
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 Instant preview does 
16977 \emph on
16978 not 
16979 \emph default
16980 have to be on for images to be output, however.
16981 \end_layout
16982
16983 \end_inset
16984
16985  The advantage to this method is that the images are simply generated by
16986  \SpecialChar LaTeX
16987 , so they are very accurate.
16988  The disadvantage, as mentioned earlier, is that these are bitmapped images,
16989  so they do not scale terribly well, and one cannot copy them, etc.
16990 \begin_inset Newline newline
16991 \end_inset
16992
16993 The size of the images can be controlled by setting the 
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997 Math Images Scaling
16998 \begin_inset Quotes erd
16999 \end_inset
17000
17001  parameter under 
17002 \begin_inset Flex Noun
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 Document\SpecialChar menuseparator
17007 Settings\SpecialChar menuseparator
17008 Formats
17009 \end_layout
17010
17011 \end_inset
17012
17013 .
17014 \begin_inset Foot
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 For those who want to know, this controls the resolution of the image in
17019  dots per inch and is based upon a default of 75 dpi.
17020 \end_layout
17021
17022 \end_inset
17023
17024
17025 \begin_inset Newline newline
17026 \end_inset
17027
17028 If \SpecialChar LyX
17029  for some reason fails to create an image for a formula (e.g., if a required
17030  \SpecialChar LaTeX
17031  package is not installed), then it will fall back to outputing the raw
17032  \SpecialChar LaTeX
17033 .
17034 \end_layout
17035
17036 \begin_layout Itemize
17037 \SpecialChar LaTeX
17038
17039 \begin_inset Newline newline
17040 \end_inset
17041
17042 Finally, \SpecialChar LyX
17043  will happily output math as \SpecialChar LaTeX
17044 .
17045  As well as being the output of last resort, this method can be used with
17046  such tools as 
17047 \begin_inset CommandInset href
17048 LatexCommand href
17049 name "jsMath"
17050 target "http://www.math.union.edu/~dpvc/jsMath/"
17051 literal "false"
17052
17053 \end_inset
17054
17055 , which uses JavaScript to render \SpecialChar LaTeX
17056  embedded in HTML documents.
17057  \SpecialChar LyX
17058  wraps the \SpecialChar LaTeX
17059  in either a 
17060 \begin_inset Flex Code
17061 status collapsed
17062
17063 \begin_layout Plain Layout
17064 span
17065 \end_layout
17066
17067 \end_inset
17068
17069  (for inline formulas) or 
17070 \begin_inset Flex Code
17071 status collapsed
17072
17073 \begin_layout Plain Layout
17074 div
17075 \end_layout
17076
17077 \end_inset
17078
17079  (for displayed formulas) with 
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084 class='math'
17085 \end_layout
17086
17087 \end_inset
17088
17089 , as is required for jsMath.
17090 \end_layout
17091
17092 \begin_layout Standard
17093 One of these output methods must be selected under 
17094 \begin_inset Flex Noun
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Document\SpecialChar menuseparator
17099 Settings\SpecialChar menuseparator
17100 Formats
17101 \end_layout
17102
17103 \end_inset
17104
17105 .
17106  By default, \SpecialChar LyX
17107  outputs MathML.
17108  This is a document-wide setting, therefore.
17109 \end_layout
17110
17111 \begin_layout Standard
17112 Eventually, \SpecialChar LyX
17113  will offer the user the option to select an alternate output
17114  method for a particular inset, say, one that isn't being rendered very
17115  well by MathML.
17116 \begin_inset Foot
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 That said, since \SpecialChar LyX
17121  falls back to images if the inset contains ERT, then one
17122  can force output as an image by putting some harmless ERT into the math,
17123  for example: 
17124 \begin_inset Formula $a=b\relax$
17125 \end_inset
17126
17127 .
17128 \end_layout
17129
17130 \end_inset
17131
17132
17133 \end_layout
17134
17135 \begin_layout Section
17136 Bibliography and Citations
17137 \end_layout
17138
17139 \begin_layout Standard
17140 XHTML output fully supports bibliographies and citations.
17141  
17142 \end_layout
17143
17144 \begin_layout Standard
17145 Citation labels are generated by the same machinery that generates \SpecialChar LyX
17146 's on-screen
17147  labels, so the labels will look in the output much as they do in \SpecialChar LyX
17148 , though
17149  better.
17150  If you are using numerical citations, then \SpecialChar LyX
17151  will output numerical labels,
17152  such as [1] or [17], rather than simply showing the citation key in square
17153  brackets, as it does on-screen.
17154  If you are using author-year citations, then \SpecialChar LyX
17155  will add lowercase letters
17156  to the years, just as Bib\SpecialChar TeX
17157  does, if it finds more than one citation for
17158  a given author-year combination.
17159  The labels will be printed with the bibliography entries.
17160  Note that there is, at present, no way to customize the appearance of the
17161  labels, for example, to choose between square brackets and parentheses.
17162 \end_layout
17163
17164 \begin_layout Standard
17165 Bibliography output is handled by the same machinery that handles the presentati
17166 on of reference information in the citation dialog, so you will see in the
17167  XHTML output pretty much what you would see if you were to look at a given
17168  entry in the citation dialog.
17169  The formatting can be customized in your layout file or, preferably, in
17170  a module.
17171  See the 
17172 \emph on
17173 Customization
17174 \emph default
17175  manual for the details.
17176 \end_layout
17177
17178 \begin_layout Standard
17179 The main defect at present is that cross-referenced information is printed
17180  with every entry with which it is associated.
17181  So you can see things like this:
17182 \end_layout
17183
17184 \begin_layout Quote
17185 Jason Stanley, 
17186 \begin_inset Quotes eld
17187 \end_inset
17188
17189 Context and Logical Form
17190 \begin_inset Quotes erd
17191 \end_inset
17192
17193 , in 
17194 \emph on
17195 Language in Context: Selected Essays
17196 \emph default
17197  (Oxford: Oxford University Press, 2007), pp.
17198  30–68.
17199 \end_layout
17200
17201 \begin_layout Quote
17202 Jason Stanley, 
17203 \begin_inset Quotes eld
17204 \end_inset
17205
17206 Semantics in Context
17207 \begin_inset Quotes erd
17208 \end_inset
17209
17210 , in 
17211 \emph on
17212 Language in Context: Selected Essays
17213 \emph default
17214  (Oxford: Oxford University Press, 2007), pp.
17215  201–30.
17216 \end_layout
17217
17218 \begin_layout Standard
17219 This should be fixed before long.
17220 \end_layout
17221
17222 \begin_layout Standard
17223 There is no support at present for sectioned bibliographies.
17224  If you have multiple bibliographies, then \SpecialChar LyX
17225  will print the same bibliography
17226  over and over.
17227 \end_layout
17228
17229 \begin_layout Section
17230 Indexes
17231 \end_layout
17232
17233 \begin_layout Standard
17234 \SpecialChar LyX
17235  will happily export indexes as XHTML, but with certain limitations at the
17236  moment.
17237 \end_layout
17238
17239 \begin_layout Standard
17240 Index export will be most reliable when you do not attempt to use the fancy
17241  constructs that are described in the section on indexes in the 
17242 \emph on
17243 User's Guide
17244 \emph default
17245 .
17246 \begin_inset Foot
17247 status collapsed
17248
17249 \begin_layout Plain Layout
17250 The main issue here is that \SpecialChar LyX
17251  itself does not really handle these.
17252  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
17253 .
17254 \end_layout
17255
17256 \end_inset
17257
17258  We'll describe how they are handled using the subsection headings from
17259  that section.
17260 \end_layout
17261
17262 \begin_layout Itemize
17263 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
17264  makes an effort to support these,
17265  but the entries must be separated by 
17266 \begin_inset Quotes eld
17267 \end_inset
17268
17269  ! 
17270 \begin_inset Quotes erd
17271 \end_inset
17272
17273 , that is, there must be spaces around the exclamation point.
17274  This is because it is otherwise too difficult to check for escaped exclamation
17275  points, ones in math, and so forth.
17276 \end_layout
17277
17278 \begin_layout Itemize
17279 Page Ranges: There is no support at all for page ranges, since these make
17280  no sense with XHMTL.
17281  Instead, you will just get two index entries, one at either end.
17282 \end_layout
17283
17284 \begin_layout Itemize
17285 Cross-referencing: There is no support for cross-referencing.
17286  If \SpecialChar LyX
17287  finds an entry containing the 
17288 \begin_inset Quotes eld
17289 \end_inset
17290
17291 |see\SpecialChar ldots
17292
17293 \begin_inset Quotes erd
17294 \end_inset
17295
17296  construct, it is just dropped, and the rest is treated as an ordinary index
17297  entry.
17298 \end_layout
17299
17300 \begin_layout Itemize
17301 Index Entry Order: \SpecialChar LyX
17302  does support attempts to fix the sorting order.
17303  It will take what is before the first `@' it finds and use that for sorting,
17304  taking what follows the first `@' to be the actual entry.
17305  At present, \SpecialChar LyX
17306  does not check for escaped `@', so do not try to index email
17307  addresses.
17308 \end_layout
17309
17310 \begin_layout Itemize
17311 Index Entry Layout: You can format entries by using the text style dialog,
17312  or by using any other method available within \SpecialChar LyX
17313  itself.
17314  There is no support for constructs like: 
17315 \begin_inset Quotes eld
17316 \end_inset
17317
17318 entry|textbf
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322 .
17323  Indeed, if \SpecialChar LyX
17324  finds a pipe symbol, `|', in an entry, it will delete it and
17325  everything that follows it.
17326 \end_layout
17327
17328 \begin_layout Itemize
17329 Multiple Indexes: There is no support for multiple indexes.
17330  Rather, all index entries will be printed as one large index.
17331  To avoid our printing several versions of the index, we print only the
17332  main index, so make sure you have one.
17333 \end_layout
17334
17335 \begin_layout Section
17336 Nomenclature and Glossary
17337 \end_layout
17338
17339 \begin_layout Standard
17340 There is at present no support for glossaries.
17341  Adding it would be fairly trivial, and welcome.
17342 \end_layout
17343
17344 \begin_layout Chapter
17345
17346 \change_inserted 1075283030 1616534180
17347 DocBook Output
17348 \end_layout
17349
17350 \begin_layout Standard
17351
17352 \change_inserted 1075283030 1616534386
17353 Apart from HTML, \SpecialChar LyX
17354  can generate documents in the DocBook XML vocabulary.
17355  With versions 2.3 and before, only select templates could be used to generate
17356  DocBook documents (only version 4).
17357  Starting with \SpecialChar LyX
17358  2.4, most \SpecialChar LyX
17359  layouts can generate valid DocBook documents (only
17360  version 5).
17361  This feature is built into \SpecialChar LyX
17362  and does not require the use of external tools.
17363 \end_layout
17364
17365 \begin_layout Standard
17366
17367 \change_inserted 1075283030 1616534437
17368 The result is that the DocBook output can be customized and extended in
17369  exactly the same way \SpecialChar LaTeX
17370  output can be customized and extended: through layout
17371  files and modules.
17372  See chapter five of the 
17373 \emph on
17374 Customization 
17375 \emph default
17376 manual for the details.
17377 \end_layout
17378
17379 \begin_layout Standard
17380
17381 \change_inserted 1075283030 1616534475
17382 Most \SpecialChar LyX
17383  features are supported with DocBook, like math output.
17384 \end_layout
17385
17386 \begin_layout Itemize
17387
17388 \change_inserted 1075283030 1616534741
17389 Math output is performed mostly in MathML (the major exception being constructio
17390 ns not supported by \SpecialChar LyX
17391 , i.e.
17392  ERTs).
17393  All formulae are also available in raw \SpecialChar TeX
17394  in the DocBook output for further
17395  processing.
17396 \end_layout
17397
17398 \begin_layout Itemize
17399
17400 \change_inserted 1075283030 1616534852
17401 Bibliographies and citations are implemented, including with an external
17402  BibTeX file.
17403  Bibliography entries are not prerendered when the detailed information
17404  are available, but rather output with the standard DocBook constructs.
17405  The external DocBook processor is expected to handle the rendering of entries.
17406 \end_layout
17407
17408 \begin_layout Itemize
17409
17410 \change_inserted 1075283030 1616534863
17411 Indexes are supported, including multiple indices.
17412  Grouping (with 
17413 \family typewriter
17414 !
17415 \family default
17416 ), page ranges, and cross-references (
17417 \family typewriter
17418 |see
17419 \family default
17420 ) are supported, with the exception of the same symbols escaped.
17421  Entry order (
17422 \family typewriter
17423 @
17424 \family default
17425 ) and layout (
17426 \family typewriter
17427 |mathbf
17428 \family default
17429 ) are not supported.
17430  There is no support for escaping of index entries.
17431 \end_layout
17432
17433 \begin_layout Itemize
17434
17435 \change_inserted 1075283030 1616534884
17436 Glossaries are implemented.
17437 \end_layout
17438
17439 \begin_layout Standard
17440
17441 \change_inserted 1075283030 1616534894
17442 Two major parameters can be set at the document level.
17443 \end_layout
17444
17445 \begin_layout Itemize
17446
17447 \change_inserted 1075283030 1616534948
17448 Format for tables: \SpecialChar LyX
17449  can generate tables either as HTML (default value) or
17450  CALS, depending on the user's requirements.
17451  Most DocBook processors accept both formats.
17452 \end_layout
17453
17454 \begin_layout Itemize
17455
17456 \change_inserted 1075283030 1616535006
17457 MathML prefix: in DocBook, MathML is included within its own name space,
17458  unlike HTML.
17459  The implication is that there must be an indication of the tags belonging
17460  to the MathML standard.
17461  Three choices are offered: 
17462 \end_layout
17463
17464 \begin_deeper
17465 \begin_layout Itemize
17466
17467 \change_inserted 1075283030 1616535044
17468 Inline: the MathML name space is defined for each formula (using the 
17469 \family typewriter
17470 xmlns
17471 \family default
17472  attribute on each formula)
17473 \end_layout
17474
17475 \begin_layout Itemize
17476
17477 \change_inserted 1075283030 1616535090
17478 With the 
17479 \family typewriter
17480 m
17481 \family default
17482  prefix (default): the MathML name space is defined at the document level
17483  (using the 
17484 \family typewriter
17485 xmlns:m
17486 \family default
17487  attribute on the root element).
17488  Each MathML is prefixed with 
17489 \family typewriter
17490 m
17491 \family default
17492 : for instance, 
17493 \family typewriter
17494 m:math
17495 \end_layout
17496
17497 \begin_layout Itemize
17498
17499 \change_inserted 1075283030 1616620405
17500 With the 
17501 \family typewriter
17502 mml
17503 \family default
17504  prefix: similar to the 
17505 \family typewriter
17506 m
17507 \family default
17508  option, but with 
17509 \family typewriter
17510 mml
17511 \end_layout
17512
17513 \begin_layout Standard
17514
17515 \change_inserted 1075283030 1616620470
17516 This option is especially useful if you want \SpecialChar LyX
17517  to match your personal style
17518  or to work with buggy software that only accepts one prefix for MathML.
17519 \change_unchanged
17520
17521 \end_layout
17522
17523 \end_deeper
17524 \begin_layout Chapter
17525 The \SpecialChar LyX
17526  Server
17527 \end_layout
17528
17529 \begin_layout Section
17530 Introduction
17531 \end_layout
17532
17533 \begin_layout Standard
17534 The `\SpecialChar LyX
17535  server' allows other programs to talk to \SpecialChar LyX
17536 , invoke \SpecialChar LyX
17537  commands, and retrieve
17538  information about the \SpecialChar LyX
17539  internal state.
17540  This is only intended for advanced users, but they should find it useful.
17541  It is by writing to the \SpecialChar LyX
17542  server, for example, that bibliography managers,
17543  such as JabRef, are able to 
17544 \begin_inset Quotes eld
17545 \end_inset
17546
17547 push
17548 \begin_inset Quotes erd
17549 \end_inset
17550
17551  citations to \SpecialChar LyX
17552 .
17553 \end_layout
17554
17555 \begin_layout Section
17556 Starting the \SpecialChar LyX
17557  Server
17558 \begin_inset CommandInset label
17559 LatexCommand label
17560 name "sec:Starting-the-Server"
17561
17562 \end_inset
17563
17564
17565 \end_layout
17566
17567 \begin_layout Standard
17568 The \SpecialChar LyX
17569  server works through the use of a pair of named pipes.
17570  These are usually located in 
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 UserDir
17576 \end_layout
17577
17578 \end_inset
17579
17580 , (except on Windows, where 
17581 \emph on
17582 local
17583 \emph default
17584  named pipes are special objects located in 
17585 \begin_inset Flex Code
17586 status collapsed
17587
17588 \begin_layout Plain Layout
17589
17590 \backslash
17591
17592 \backslash
17593 .
17594 \backslash
17595 pipe
17596 \end_layout
17597
17598 \end_inset
17599
17600 ) and have the names 
17601 \begin_inset Quotes eld
17602 \end_inset
17603
17604
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 lyxpipe.in
17610 \end_layout
17611
17612 \end_inset
17613
17614
17615 \begin_inset Quotes erd
17616 \end_inset
17617
17618  and 
17619 \begin_inset Quotes eld
17620 \end_inset
17621
17622
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 lyxpipe.out
17628 \end_layout
17629
17630 \end_inset
17631
17632
17633 \begin_inset Quotes erd
17634 \end_inset
17635
17636 .
17637  External programs write into 
17638 \begin_inset Flex Code
17639 status collapsed
17640
17641 \begin_layout Plain Layout
17642 lyxpipe.in
17643 \end_layout
17644
17645 \end_inset
17646
17647  and read back data from 
17648 \begin_inset Flex Code
17649 status collapsed
17650
17651 \begin_layout Plain Layout
17652 lyxpipe.out
17653 \end_layout
17654
17655 \end_inset
17656
17657 .
17658  The stem of the pipe names can be defined in the 
17659 \begin_inset Flex Noun
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 Tools\SpecialChar menuseparator
17664 Preferences
17665 \end_layout
17666
17667 \end_inset
17668
17669  dialog, for example 
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 "/home/myhome/lyxpipe"
17675 \end_layout
17676
17677 \end_inset
17678
17679 , or 
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 "
17685 \backslash
17686
17687 \backslash
17688 .
17689 \backslash
17690 pipe
17691 \backslash
17692 lyxpipe"
17693 \end_layout
17694
17695 \end_inset
17696
17697  on Windows (where any working path instead of lyxpipe can be used, for
17698  example 
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 "
17704 \backslash
17705
17706 \backslash
17707 .
17708 \backslash
17709 pipe
17710 \backslash
17711 my
17712 \backslash
17713 lyx
17714 \backslash
17715 pipe"
17716 \end_layout
17717
17718 \end_inset
17719
17720  would also work).
17721  You 
17722 \emph on
17723 must
17724 \emph default
17725  configure this manually in order for the server to start.
17726 \end_layout
17727
17728 \begin_layout Standard
17729 \SpecialChar LyX
17730  will add the '
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 .in
17736 \end_layout
17737
17738 \end_inset
17739
17740 ' and '
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 .out
17746 \end_layout
17747
17748 \end_inset
17749
17750 ' to create the pipes.
17751  If one of the pipes already exists, \SpecialChar LyX
17752  will assume that another \SpecialChar LyX
17753  process
17754  is already running and will not start the server.
17755  On POSIX (Unix like) systems, if for some other reason, an unused 
17756 \begin_inset Quotes eld
17757 \end_inset
17758
17759 stale
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763  pipe is left in existence when \SpecialChar LyX
17764  closes, then \SpecialChar LyX
17765  will try to delete it.
17766  If this fails for some reason, you will need to delete the pipes manually
17767  and then restart \SpecialChar LyX
17768 .
17769  On Windows, pipes are deleted by the OS on program termination or crash,
17770  so 
17771 \begin_inset Quotes eld
17772 \end_inset
17773
17774 stale
17775 \begin_inset Quotes erd
17776 \end_inset
17777
17778  pipes should not be possible.
17779 \end_layout
17780
17781 \begin_layout Standard
17782 To have several \SpecialChar LyX
17783  processes with servers at the same time, you have to use
17784  different configurations, perhaps by using separate user directories, each
17785  with its own 
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 preferences
17791 \end_layout
17792
17793 \end_inset
17794
17795  file, for each process.
17796 \end_layout
17797
17798 \begin_layout Standard
17799 If you are developing a client program, you might find it useful to enable
17800  debugging information from the \SpecialChar LyX
17801  server.
17802  Do this by starting \SpecialChar LyX
17803  as 
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 lyx -dbg lyxserver
17809 \end_layout
17810
17811 \end_inset
17812
17813 .
17814 \end_layout
17815
17816 \begin_layout Standard
17817 You can find a complete example client written in C++ in the source distribution
17818  as 
17819 \begin_inset Flex Code
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823 development/lyxserver/server_monitor.cpp
17824 \end_layout
17825
17826 \end_inset
17827
17828 .
17829 \end_layout
17830
17831 \begin_layout Standard
17832 Another useful tool is the command-line based client found in 
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 src/client/lyxclient
17838 \end_layout
17839
17840 \end_inset
17841
17842 .
17843 \end_layout
17844
17845 \begin_layout Section
17846 Normal communication
17847 \end_layout
17848
17849 \begin_layout Standard
17850 To issue a \SpecialChar LyX
17851  call, the client writes a line of ASCII text into the input
17852  pipe.
17853  This line has the following format:
17854 \end_layout
17855
17856 \begin_layout Quote
17857 LYXCMD:
17858 \emph on
17859 clientname
17860 \emph default
17861 :
17862 \emph on
17863 function
17864 \emph default
17865 :
17866 \emph on
17867 argument
17868 \end_layout
17869
17870 \begin_layout Description
17871 clientname is a name that the client can choose arbitrarily.
17872  Its only use is that \SpecialChar LyX
17873  will echo it if it sends an answer—so a client can
17874  dispatch results from different requesters.
17875 \end_layout
17876
17877 \begin_layout Description
17878 function is the function you want \SpecialChar LyX
17879  to perform.
17880  It is the same as the commands you'd use in the minibuffer.
17881 \end_layout
17882
17883 \begin_layout Description
17884 argument is an optional argument which is meaningful only to some functions
17885  (for instance, the 
17886 \begin_inset Quotes eld
17887 \end_inset
17888
17889 self-insert
17890 \begin_inset Quotes erd
17891 \end_inset
17892
17893  LFUN will insert the argument as text at the cursor position).
17894 \end_layout
17895
17896 \begin_layout Standard
17897 The answer from \SpecialChar LyX
17898  will arrive in the output pipe and be of the form
17899 \end_layout
17900
17901 \begin_layout Quote
17902 INFO:
17903 \emph on
17904 clientname
17905 \emph default
17906 :
17907 \emph on
17908 function
17909 \emph default
17910 :
17911 \emph on
17912 data
17913 \end_layout
17914
17915 \begin_layout Standard
17916 where 
17917 \emph on
17918 clientname
17919 \emph default
17920  and 
17921 \emph on
17922 function
17923 \emph default
17924  are just echoed from the command request, while 
17925 \emph on
17926 data
17927 \emph default
17928  is more or less useful information filled according to how the command
17929  execution worked out.
17930  Some commands, such as 
17931 \begin_inset Quotes eld
17932 \end_inset
17933
17934 font-state
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938 , will return information about the internal state of \SpecialChar LyX
17939 , while other will
17940  return an empty data-response.
17941  This means that the command execution went fine.
17942 \end_layout
17943
17944 \begin_layout Standard
17945 In case of errors, the response from \SpecialChar LyX
17946  will have this form
17947 \end_layout
17948
17949 \begin_layout Quote
17950 ERROR:
17951 \emph on
17952 clientname
17953 \emph default
17954 :
17955 \emph on
17956 function
17957 \emph default
17958 :
17959 \emph on
17960 error message
17961 \end_layout
17962
17963 \begin_layout Standard
17964 where the 
17965 \emph on
17966 error message
17967 \emph default
17968  should contain an explanation of why the command failed.
17969 \end_layout
17970
17971 \begin_layout Standard
17972 Examples:
17973 \end_layout
17974
17975 \begin_layout LyX-Code
17976 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
17977 \begin_inset Newline newline
17978 \end_inset
17979
17980 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
17981 \begin_inset Newline newline
17982 \end_inset
17983
17984 read a <~/.lyxpipe.out
17985 \begin_inset Newline newline
17986 \end_inset
17987
17988 echo $a
17989 \end_layout
17990
17991 \begin_layout Subsection
17992 AppleScript (Mac OS X)
17993 \end_layout
17994
17995 \begin_layout Standard
17996 Since \SpecialChar LyX
17997  2.1, \SpecialChar LyX
17998  supports basic interactions with AppleScript for normal communicatio
17999 n through the command run.
18000  This command takes a direct argument (the 
18001 \series bold
18002 function
18003 \series default
18004  to perform) and an optional argument.
18005  It either returns the output of the function or triggers an error with
18006  the error message and code.
18007 \end_layout
18008
18009 \begin_layout Standard
18010 Example:
18011 \end_layout
18012
18013 \begin_layout LyX-Code
18014 tell application "\SpecialChar LyX
18015 "
18016 \end_layout
18017
18018 \begin_layout LyX-Code
18019   try
18020 \end_layout
18021
18022 \begin_layout LyX-Code
18023     -- Stores the current file name into f
18024 \end_layout
18025
18026 \begin_layout LyX-Code
18027     set f to (run "server-get-filename" with argument "")
18028 \end_layout
18029
18030 \begin_layout LyX-Code
18031     on error the error_message number the error_number
18032 \end_layout
18033
18034 \begin_layout LyX-Code
18035       display dialog "Error: " & the error_number & ".
18036  " ¬
18037 \end_layout
18038
18039 \begin_layout LyX-Code
18040               & the error_message buttons {"OK"} default button 1
18041 \end_layout
18042
18043 \begin_layout LyX-Code
18044   end try
18045 \end_layout
18046
18047 \begin_layout LyX-Code
18048 end tell
18049 \end_layout
18050
18051 \begin_layout Section
18052 Notification
18053 \end_layout
18054
18055 \begin_layout Standard
18056 \SpecialChar LyX
18057  can notify clients of events going on asynchronously.
18058  Currently it will only do this if the user binds a key sequence with the
18059  function 
18060 \begin_inset Quotes eld
18061 \end_inset
18062
18063 notify
18064 \begin_inset Quotes erd
18065 \end_inset
18066
18067 .
18068  The format of the string \SpecialChar LyX
18069  sends is as follows:
18070 \end_layout
18071
18072 \begin_layout Quote
18073 \begin_inset Flex Code
18074 status collapsed
18075
18076 \begin_layout Plain Layout
18077 NOTIFY:
18078 \end_layout
18079
18080 \end_inset
18081
18082
18083 \emph on
18084 key-sequence
18085 \end_layout
18086
18087 \begin_layout Standard
18088 where 
18089 \emph on
18090 key-sequence
18091 \emph default
18092  is the printed representation of the key sequence that was actually typed
18093  by the user.
18094 \end_layout
18095
18096 \begin_layout Standard
18097 This mechanism can be used to extend \SpecialChar LyX
18098 's command set and implement macros.
18099  Bind some key sequence to 
18100 \begin_inset Quotes eld
18101 \end_inset
18102
18103 notify
18104 \begin_inset Quotes erd
18105 \end_inset
18106
18107 .
18108  Then start a client that listens on the output pipe, dispatches the command
18109  according to the sequence, and starts a function that may use \SpecialChar LyX
18110  calls and
18111  \SpecialChar LyX
18112  requests to issue a command or a series of commands to \SpecialChar LyX
18113 .
18114 \end_layout
18115
18116 \begin_layout Section
18117 The simple \SpecialChar LyX
18118  Server Protocol
18119 \end_layout
18120
18121 \begin_layout Standard
18122 \SpecialChar LyX
18123  implements a simple protocol that can be used for session management.
18124  All messages are of the form
18125 \end_layout
18126
18127 \begin_layout Quote
18128 LYXSRV:
18129 \emph on
18130 clientname
18131 \emph default
18132 :
18133 \emph on
18134 protocol message
18135 \end_layout
18136
18137 \begin_layout Standard
18138 where 
18139 \emph on
18140 protocol message
18141 \emph default
18142  can be 
18143 \begin_inset Quotes eld
18144 \end_inset
18145
18146 hello
18147 \begin_inset Quotes erd
18148 \end_inset
18149
18150  or 
18151 \begin_inset Quotes eld
18152 \end_inset
18153
18154 bye
18155 \begin_inset Quotes erd
18156 \end_inset
18157
18158 .
18159  If 
18160 \begin_inset Quotes eld
18161 \end_inset
18162
18163 hello
18164 \begin_inset Quotes erd
18165 \end_inset
18166
18167  is received from a client, \SpecialChar LyX
18168  will report back to inform the client that
18169  it's listening to it's messages, while 
18170 \begin_inset Quotes eld
18171 \end_inset
18172
18173 bye
18174 \begin_inset Quotes erd
18175 \end_inset
18176
18177  sent from \SpecialChar LyX
18178  will inform clients that \SpecialChar LyX
18179  is closing.
18180 \end_layout
18181
18182 \begin_layout Section
18183 Reverse DVI/PDF search
18184 \end_layout
18185
18186 \begin_layout Standard
18187 Some DVI/PDF viewers
18188 \begin_inset Foot
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
18193  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
18194 \end_layout
18195
18196 \end_inset
18197
18198  provide 
18199 \emph on
18200 reverse search
18201 \emph default
18202  facility (also called 
18203 \emph on
18204 inverse search
18205 \emph default
18206 ).
18207  This means that you can tell \SpecialChar LyX
18208  to put the cursor to a specific line in the
18209  document by clicking at the respective position in the DVI/PDF output.
18210  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
18211 .
18212  This is done via the \SpecialChar LyX
18213  server either by using the named pipe (
18214 \emph on
18215 lyxpipe
18216 \emph default
18217 ), or the UNIX domain socket (
18218 \emph on
18219 lyxsocket
18220 \emph default
18221 ) that \SpecialChar LyX
18222  creates in its temporary directory (this is the way the 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 lyxclient
18228 \end_layout
18229
18230 \end_inset
18231
18232  program communicates with \SpecialChar LyX
18233 ).
18234  In some cases, you need a helper script that mediates between the viewer
18235  and \SpecialChar LyX
18236 , in others, the viewer can communicate with \SpecialChar LyX
18237  directly.
18238  This depends on the selected viewer and on your operating system.
18239  The same applies to the way viewers need to be configured and the way the
18240  reverse search is actually performed.
18241  In what follows, we will thus describe how to setup reverse search for
18242  specific viewers.
18243  Before we turn to this, though, we will explain what needs to be done generally
18244  to enable reverse search in the DVI/PDF output.
18245 \end_layout
18246
18247 \begin_layout Subsection
18248 Automatic setup
18249 \begin_inset CommandInset label
18250 LatexCommand label
18251 name "subsec:rev-search"
18252
18253 \end_inset
18254
18255
18256 \end_layout
18257
18258 \begin_layout Standard
18259 In most cases \SpecialChar LyX
18260  will do the work for you by pressing the following button
18261  in the toolbar: 
18262 \begin_inset Info
18263 type  "icon"
18264 arg   "buffer-toggle-output-sync"
18265 \end_inset
18266
18267 .
18268  Alternatively, you can also enable the feature by checking 
18269 \family sans
18270 Synchronize with Output
18271 \family default
18272  in 
18273 \begin_inset Flex Noun
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 Document\SpecialChar menuseparator
18278 Settings\SpecialChar menuseparator
18279 Formats
18280 \end_layout
18281
18282 \end_inset
18283
18284 .
18285  In such a case \SpecialChar LyX
18286  will automatically insert the necessary Sync\SpecialChar TeX
18287  macro (for
18288  PDF) or load the srcltx package (for DVI) respectively.
18289  This option can be easily reached also on 
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 View/Update
18295 \end_layout
18296
18297 \end_inset
18298
18299  Toolbar.
18300 \end_layout
18301
18302 \begin_layout Standard
18303 If you need a different setting, you can select or input a custom macro
18304  from the drop down box just below 
18305 \begin_inset Flex Noun
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309 Document\SpecialChar menuseparator
18310 Settings\SpecialChar menuseparator
18311 Output\SpecialChar menuseparator
18312 Synchronize with Output
18313 \end_layout
18314
18315 \end_inset
18316
18317 .
18318 \end_layout
18319
18320 \begin_layout Standard
18321 Note that the method 
18322 \begin_inset Flex Code
18323 status collapsed
18324
18325 \begin_layout Plain Layout
18326
18327 \backslash
18328 synctex=1
18329 \end_layout
18330
18331 \end_inset
18332
18333  enables gzip compression.
18334  If your viewer does not support it, you should instead use 
18335 \begin_inset Flex Code
18336 status collapsed
18337
18338 \begin_layout Plain Layout
18339
18340 \backslash
18341 synctex=-1
18342 \end_layout
18343
18344 \end_inset
18345
18346 .
18347 \end_layout
18348
18349 \begin_layout Standard
18350 Please also note that including the 
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 srcltx
18356 \end_layout
18357
18358 \end_inset
18359
18360  package or 
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 src-specials
18366 \end_layout
18367
18368 \end_inset
18369
18370  sometimes has an undesired impact on the typesetting.
18371  Thus, you should switch output synchronization off for the final typesetting
18372  if you use the 
18373 \begin_inset Flex Code
18374 status collapsed
18375
18376 \begin_layout Plain Layout
18377 srcltx
18378 \end_layout
18379
18380 \end_inset
18381
18382  package or 
18383 \begin_inset Flex Code
18384 status collapsed
18385
18386 \begin_layout Plain Layout
18387 src-specials
18388 \end_layout
18389
18390 \end_inset
18391
18392 .
18393  
18394 \end_layout
18395
18396 \begin_layout Standard
18397 In case you need some more special settings that are not covered by the
18398  automatic settings, read the next section about how to set up output synchroniz
18399 ation manually.
18400  If the automatic setup suits your needs, you can readily jump to section
18401 \begin_inset space ~
18402 \end_inset
18403
18404
18405 \begin_inset CommandInset ref
18406 LatexCommand ref
18407 reference "subsec:configuring-viewers"
18408
18409 \end_inset
18410
18411 , where the necessary configuration steps in your viewer – needed both with
18412  the automatic and the manual setup – are described.
18413 \end_layout
18414
18415 \begin_layout Subsection
18416 Manual setup
18417 \end_layout
18418
18419 \begin_layout Standard
18420 \SpecialChar LaTeX
18421  provides several different methods for reverse search.
18422  Some are built-in in the 
18423 \begin_inset Flex Code
18424 status collapsed
18425
18426 \begin_layout Plain Layout
18427 latex/pdflatex
18428 \end_layout
18429
18430 \end_inset
18431
18432  program, some are provided by external packages.
18433  Your choice depends on whether your \SpecialChar LaTeX
18434  distribution already provides a given
18435  method (the built-in methods are rather new) and whether your viewer can
18436  cope with it.
18437  The available methods are described in the following.
18438 \end_layout
18439
18440 \begin_layout Subsubsection*
18441 Built-in DVI-search via src-specials (DVI only) 
18442 \end_layout
18443
18444 \begin_layout Standard
18445 This method provides the DVI file with the necessary information for reverse
18446  search.
18447  It is available in \SpecialChar LaTeX
18448  since quite some time (any somewhat recent \SpecialChar LaTeX
18449  distribution
18450  should include it), and it works reliably.
18451  To enable it, change the 
18452 \begin_inset Flex Noun
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 La
18457 \family sans
18458 TeX
18459 \family default
18460  (plain)->DVI
18461 \end_layout
18462
18463 \end_inset
18464
18465  or 
18466 \begin_inset Flex Noun
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 La
18471 \family sans
18472 TeX
18473 \family default
18474  (plain)->DraftDVI
18475 \end_layout
18476
18477 \end_inset
18478
18479  converter in 
18480 \begin_inset Flex Noun
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 Preferences\SpecialChar menuseparator
18485 File Handling\SpecialChar menuseparator
18486 Converters
18487 \end_layout
18488
18489 \end_inset
18490
18491  to 
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 latex -src-specials $$i
18497 \end_layout
18498
18499 \end_inset
18500
18501 .
18502  If this doesn't work, check if your \SpecialChar TeX
18503  engine needs different options (the
18504  syntax might differ in some distributions).
18505 \end_layout
18506
18507 \begin_layout Subsubsection*
18508 External Packages (PDFSync and scrltx) 
18509 \end_layout
18510
18511 \begin_layout Standard
18512 The packages 
18513 \emph on
18514 pdfsync
18515 \emph default
18516  and 
18517 \emph on
18518 scrltx
18519 \emph default
18520  provide reverse search facility for PDF output (via pdflatex) and DVI output,
18521  respectively.
18522  In order to enable it, load the packages in the \SpecialChar LyX
18523  preamble: 
18524 \end_layout
18525
18526 \begin_layout Itemize
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531
18532 \backslash
18533 usepackage{pdfsync}
18534 \end_layout
18535
18536 \end_inset
18537
18538  for reverse PDF search,
18539 \end_layout
18540
18541 \begin_layout Itemize
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546
18547 \backslash
18548 usepackage[active]{srcltx}
18549 \end_layout
18550
18551 \end_inset
18552
18553  for reverse DVI search.
18554 \end_layout
18555
18556 \begin_layout Standard
18557 If you want to be able to perform both DVI and PDF reverse searches, you
18558  can also insert in the preamble the following lines
18559 \end_layout
18560
18561 \begin_layout LyX-Code
18562
18563 \backslash
18564 usepackage{ifpdf}
18565 \begin_inset Newline newline
18566 \end_inset
18567
18568
18569 \backslash
18570 ifpdf
18571 \begin_inset Newline newline
18572 \end_inset
18573
18574   
18575 \backslash
18576 usepackage{pdfsync}
18577 \begin_inset Newline newline
18578 \end_inset
18579
18580
18581 \backslash
18582 else
18583 \begin_inset Newline newline
18584 \end_inset
18585
18586   
18587 \backslash
18588 usepackage[active]{srcltx}
18589 \begin_inset Newline newline
18590 \end_inset
18591
18592
18593 \backslash
18594 fi
18595 \end_layout
18596
18597 \begin_layout Standard
18598 This way, you can preview the file as either DVI or PDF (pdflatex) and the
18599  right package will be used.
18600 \end_layout
18601
18602 \begin_layout Standard
18603 Note that PDFSync might affect the output layout of your document.
18604  It is therefore advised to disable PDFsync for final documents.
18605 \end_layout
18606
18607 \begin_layout Subsubsection*
18608 Built-in reverse search via Sync\SpecialChar TeX
18609  (DVI and PDF) 
18610 \end_layout
18611
18612 \begin_layout Standard
18613 Recent versions of 
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 (pdf)latex
18619 \end_layout
18620
18621 \end_inset
18622
18623  have built-in support for both PDF and DVI reverse search.
18624  This so-called 
18625 \emph on
18626 Sync\SpecialChar TeX
18627
18628 \emph default
18629  facility is basically the result of the integration of the PDFSync package
18630  to the pdftex program and its merge with the 
18631 \emph on
18632 scr-specials
18633 \emph default
18634  approach.
18635  You need at least \SpecialChar TeX
18636 Live 2008 or a recent Mik\SpecialChar TeX
18637  distribution in order to use
18638  it.
18639 \begin_inset Foot
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 For some reason, Mik\SpecialChar TeX
18644  does not understand/obey the command \SpecialChar LyX
18645  inserts into
18646  the preamble when you check the "Enable Forward/Reverse Search" button
18647  in the toolbar and does not generate the necessary info.
18648 \end_layout
18649
18650 \begin_layout Plain Layout
18651 The generation of the required info can be forced by changing the converter
18652  "\SpecialChar LaTeX
18653  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
18654  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
18655  the -synctex=1 switch).
18656 \end_layout
18657
18658 \end_inset
18659
18660  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
18661  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
18662  already provide Sync\SpecialChar TeX
18663  support.
18664 \end_layout
18665
18666 \begin_layout Standard
18667 To enable Sync\SpecialChar TeX
18668  for DVI output, change the 
18669 \begin_inset Flex Noun
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673 La
18674 \family sans
18675 TeX
18676 \family default
18677  (plain) -> DVI
18678 \end_layout
18679
18680 \end_inset
18681
18682  or 
18683 \begin_inset Flex Noun
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687 La
18688 \family sans
18689 TeX
18690 \family default
18691  (plain) -> DraftDVI
18692 \end_layout
18693
18694 \end_inset
18695
18696  converter in 
18697 \begin_inset Flex Noun
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 Preferences\SpecialChar menuseparator
18702 File Handling\SpecialChar menuseparator
18703 Converters
18704 \end_layout
18705
18706 \end_inset
18707
18708  to 
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 latex -synctex=1 $$i
18714 \end_layout
18715
18716 \end_inset
18717
18718 , and for PDF output, change the 
18719 \begin_inset Flex Noun
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723 La
18724 \family sans
18725 TeX
18726 \family default
18727  (pdflatex) -> PDF (pdflatex)
18728 \end_layout
18729
18730 \end_inset
18731
18732  converter to 
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 pdflatex -synctex=1 $$i
18738 \end_layout
18739
18740 \end_inset
18741
18742 .
18743  Should your viewer not be considered in the following description, or in
18744  case of missing success, please check the documentation of your viewer
18745  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
18746 .
18747 \begin_inset Foot
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 Note that the option 
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 -synctex=1
18757 \end_layout
18758
18759 \end_inset
18760
18761  option enables gzip compression.
18762  If your viewer does not support it, you should instead use 
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 -synctex=-1
18768 \end_layout
18769
18770 \end_inset
18771
18772 .
18773 \end_layout
18774
18775 \end_inset
18776
18777
18778 \end_layout
18779
18780 \begin_layout Subsection
18781 Configuring and using specific viewers
18782 \begin_inset CommandInset label
18783 LatexCommand label
18784 name "subsec:configuring-viewers"
18785
18786 \end_inset
18787
18788
18789 \end_layout
18790
18791 \begin_layout Subsubsection*
18792 Xdvi (all platforms)
18793 \end_layout
18794
18795 \begin_layout Standard
18796 If you use 
18797 \begin_inset Flex Code
18798 status collapsed
18799
18800 \begin_layout Plain Layout
18801 xdvi
18802 \end_layout
18803
18804 \end_inset
18805
18806 , you don't need to do anything else for performing a reverse DVI search,
18807  as \SpecialChar LyX
18808  already provides the necessary hooks for automatically using the 
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 lyxclient
18814 \end_layout
18815
18816 \end_inset
18817
18818  program.
18819  Just setup your document as described above (reverse search is triggered
18820  by Ctrl-click or Alt-click on Mac OSX, respectively).
18821 \end_layout
18822
18823 \begin_layout Standard
18824 However, if for whatever reason you want to use the named pipe instead of
18825  the socket for communicating with \SpecialChar LyX
18826 , simply change the DVI viewer in 
18827 \begin_inset Flex Noun
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831 Preferences\SpecialChar menuseparator
18832 File Handling\SpecialChar menuseparator
18833 File formats
18834 \end_layout
18835
18836 \end_inset
18837
18838  to
18839 \begin_inset Foot
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 On Mac OSX you have to use 
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
18849 \end_layout
18850
18851 \end_inset
18852
18853
18854 \end_layout
18855
18856 \end_inset
18857
18858  
18859 \begin_inset Flex Code
18860 status collapsed
18861
18862 \begin_layout Plain Layout
18863 xdvi -editor "lyxeditor.sh %f %l"
18864 \end_layout
18865
18866 \end_inset
18867
18868 , where 
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 lyxeditor.sh
18874 \end_layout
18875
18876 \end_inset
18877
18878  is a suitable script.
18879  For example, a minimal shell script is the following one:
18880 \end_layout
18881
18882 \begin_layout LyX-Code
18883 #!/bin/sh
18884 \begin_inset Newline newline
18885 \end_inset
18886
18887 LYXPIPE="/path/to/lyxpipe"
18888 \begin_inset Newline newline
18889 \end_inset
18890
18891 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
18892 \begin_inset Newline newline
18893 \end_inset
18894
18895 echo "$COMMAND" > "${LYXPIPE}".in || exit
18896 \begin_inset Newline newline
18897 \end_inset
18898
18899 read TMP < "${LYXPIPE}".out || exit
18900 \end_layout
18901
18902 \begin_layout Standard
18903 where 
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 /path/to/lyxpipe
18909 \end_layout
18910
18911 \end_inset
18912
18913  is the LyXServer pipe path specified in 
18914 \begin_inset Flex Noun
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 Preferences\SpecialChar menuseparator
18919 Paths
18920 \end_layout
18921
18922 \end_inset
18923
18924 .
18925 \begin_inset Foot
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929 In the 
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 development/tools
18935 \end_layout
18936
18937 \end_inset
18938
18939  folder of a source distribution you can find a 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 lyxeditor
18945 \end_layout
18946
18947 \end_inset
18948
18949  script which is able to locate the 
18950 \emph on
18951 lyxpipe
18952 \emph default
18953  based on your preferences.
18954 \end_layout
18955
18956 \end_inset
18957
18958
18959 \end_layout
18960
18961 \begin_layout Subsubsection*
18962 MacDviX (Mac OSX)
18963 \end_layout
18964
18965 \begin_layout Standard
18966 At the end of 
18967 \begin_inset Flex Code
18968 status collapsed
18969
18970 \begin_layout Plain Layout
18971 /Applications/MacDviX_Folder/calleditor.script
18972 \end_layout
18973
18974 \end_inset
18975
18976 , add the following lines:
18977 \end_layout
18978
18979 \begin_layout LyX-Code
18980 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
18981 \begin_inset Newline newline
18982 \end_inset
18983
18984 exit 1
18985 \end_layout
18986
18987 \begin_layout Standard
18988 Modify the lines accordingly if you install \SpecialChar LyX
18989  somewhere else than in the
18990  Applications folder.
18991 \end_layout
18992
18993 \begin_layout Standard
18994 Reverse search is triggered by Alt-click (OPTION-click).
18995 \end_layout
18996
18997 \begin_layout Subsubsection*
18998 Skim (Mac OSX)
18999 \end_layout
19000
19001 \begin_layout Standard
19002 Enter 
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 open -a Skim.app $$i
19008 \end_layout
19009
19010 \end_inset
19011
19012  to the viewer setting in 
19013 \begin_inset Flex Noun
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 Preferences\SpecialChar menuseparator
19018 File Handling\SpecialChar menuseparator
19019 File formats\SpecialChar menuseparator
19020 PDF (pdflatex)
19021 \end_layout
19022
19023 \end_inset
19024
19025 , and then in 
19026 \begin_inset Flex Noun
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 Skim\SpecialChar menuseparator
19031 Preferences\SpecialChar menuseparator
19032 Sync
19033 \end_layout
19034
19035 \end_inset
19036
19037  choose 
19038 \begin_inset Flex Noun
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 custom
19043 \end_layout
19044
19045 \end_inset
19046
19047  preset and enter command 
19048 \begin_inset Flex Noun
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 /Applications/\SpecialChar LyX
19053 .app/Contents/MacOS/lyxeditor
19054 \end_layout
19055
19056 \end_inset
19057
19058 .
19059 \end_layout
19060
19061 \begin_layout Standard
19062 Reverse search is triggered by COMMAND-SHIFT-click
19063 \end_layout
19064
19065 \begin_layout Subsubsection*
19066 Evince (GNOME)
19067 \end_layout
19068
19069 \begin_layout Standard
19070 Reverse search with evince does not work out of the box, but it can be achieved
19071  by means of some third party helper scripts.
19072  Please refer to 
19073 \begin_inset CommandInset href
19074 LatexCommand href
19075 target "https://wiki.lyx.org/LyX/SyncTeX"
19076 literal "false"
19077
19078 \end_inset
19079
19080  for details.
19081 \end_layout
19082
19083 \begin_layout Subsubsection*
19084 Okular (KDE)
19085 \end_layout
19086
19087 \begin_layout Standard
19088 Go to 
19089 \begin_inset Flex Noun
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 Settings\SpecialChar menuseparator
19094 Configure Okular\SpecialChar menuseparator
19095 Editor
19096 \end_layout
19097
19098 \end_inset
19099
19100  and select LyX
19101 \begin_inset Quotes erd
19102 \end_inset
19103
19104  as editor.
19105  This inserts the appropriate command (
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 lyxclient -g %f %l
19111 \end_layout
19112
19113 \end_inset
19114
19115 ).
19116 \end_layout
19117
19118 \begin_layout Standard
19119 Reverse search is triggered by SHIFT-click.
19120
19121 \change_inserted -712698321 1578211026
19122  Note that this only works if Okular is in 
19123 \begin_inset Quotes eld
19124 \end_inset
19125
19126 Browse
19127 \begin_inset Quotes erd
19128 \end_inset
19129
19130  mode (i.
19131 \begin_inset space \thinspace{}
19132 \end_inset
19133
19134 e., the hand symbol is clicked).
19135 \change_unchanged
19136
19137 \end_layout
19138
19139 \begin_layout Subsubsection*
19140 Qpdfview (Unix)
19141 \end_layout
19142
19143 \begin_layout Standard
19144 Qpdfview supports Sync\SpecialChar TeX
19145  since version 0.3.5.
19146  Go to 
19147 \begin_inset Flex Noun
19148 status collapsed
19149
19150 \begin_layout Plain Layout
19151 Edit\SpecialChar menuseparator
19152 Settings\SpecialChar menuseparator
19153 Behavior
19154 \end_layout
19155
19156 \end_inset
19157
19158 , click on the input field of the 
19159 \begin_inset Quotes eld
19160 \end_inset
19161
19162 Source editor
19163 \begin_inset Quotes erd
19164 \end_inset
19165
19166  item and add the command 
19167 \begin_inset Flex Code
19168 status collapsed
19169
19170 \begin_layout Plain Layout
19171 lyxclient -g %1 %2
19172 \end_layout
19173
19174 \end_inset
19175
19176 .
19177 \end_layout
19178
19179 \begin_layout Standard
19180 Reverse search is triggered by double-click or, in more recent versions,
19181  by context menu.
19182 \end_layout
19183
19184 \begin_layout Subsubsection*
19185 YAP (Windows)
19186 \end_layout
19187
19188 \begin_layout Standard
19189 Launch yap, choose its 
19190 \begin_inset Flex Noun
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 View\SpecialChar menuseparator
19195 Options
19196 \end_layout
19197
19198 \end_inset
19199
19200  menu and select the 
19201 \begin_inset Quotes eld
19202 \end_inset
19203
19204 Inverse DVI Search
19205 \begin_inset Quotes erd
19206 \end_inset
19207
19208  tab.
19209  Click on the 
19210 \begin_inset Quotes eld
19211 \end_inset
19212
19213 New\SpecialChar ldots
19214
19215 \begin_inset Quotes erd
19216 \end_inset
19217
19218  button and, in the window that opens, enter 
19219 \begin_inset Quotes eld
19220 \end_inset
19221
19222 \SpecialChar LyX
19223  Editor
19224 \begin_inset Quotes erd
19225 \end_inset
19226
19227  (or any other name you like) in the 
19228 \begin_inset Quotes eld
19229 \end_inset
19230
19231 Name:
19232 \begin_inset Quotes erd
19233 \end_inset
19234
19235  field.
19236  Now click on the button labeled 
19237 \begin_inset Quotes eld
19238 \end_inset
19239
19240 \SpecialChar ldots
19241
19242 \begin_inset Quotes erd
19243 \end_inset
19244
19245  to open a file dialog and navigate to the directory containing the batch
19246  file 
19247 \begin_inset Flex Code
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251 lyxeditor.bat
19252 \end_layout
19253
19254 \end_inset
19255
19256  (see below).
19257  Select 
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262 lyxeditor.bat
19263 \end_layout
19264
19265 \end_inset
19266
19267  and then specify the program arguments as 
19268 \begin_inset Flex Code
19269 status collapsed
19270
19271 \begin_layout Plain Layout
19272 %f %l
19273 \end_layout
19274
19275 \end_inset
19276
19277 .
19278  The 
19279 \begin_inset Flex Code
19280 status collapsed
19281
19282 \begin_layout Plain Layout
19283 lyxeditor.bat
19284 \end_layout
19285
19286 \end_inset
19287
19288  wrapper is used for communicating with \SpecialChar LyX
19289  through the 
19290 \emph on
19291 lyxpipe
19292 \emph default
19293  and is as follows:
19294 \end_layout
19295
19296 \begin_layout LyX-Code
19297 @echo off
19298 \begin_inset Newline newline
19299 \end_inset
19300
19301 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
19302 \backslash
19303
19304 \backslash
19305 .
19306 \backslash
19307 pipe
19308 \backslash
19309 lyxpipe.in
19310 \begin_inset Newline newline
19311 \end_inset
19312
19313 type 
19314 \backslash
19315
19316 \backslash
19317 .
19318 \backslash
19319 pipe
19320 \backslash
19321 lyxpipe.out
19322 \end_layout
19323
19324 \begin_layout Standard
19325 Make sure that the \SpecialChar LyX
19326 Server pipe path you specified in \SpecialChar LyX
19327  is 
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332
19333 \backslash
19334
19335 \backslash
19336 .
19337 \backslash
19338 pipe
19339 \backslash
19340 lyxpipe
19341 \end_layout
19342
19343 \end_inset
19344
19345 , otherwise change the 
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 lyxeditor.bat
19351 \end_layout
19352
19353 \end_inset
19354
19355  wrapper accordingly.
19356 \end_layout
19357
19358 \begin_layout Standard
19359 In yap, reverse search is triggered by double-click.
19360 \end_layout
19361
19362 \begin_layout Subsubsection*
19363 SumatraPDF (Windows)
19364 \end_layout
19365
19366 \begin_layout Standard
19367 In order to use SumatraPDF for inverse search, enter 
19368 \begin_inset Flex Code
19369 status collapsed
19370
19371 \begin_layout Plain Layout
19372 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
19373 \end_layout
19374
19375 \end_inset
19376
19377  in the viewer setting in 
19378 \begin_inset Flex Noun
19379 status collapsed
19380
19381 \begin_layout Plain Layout
19382 Preferences\SpecialChar menuseparator
19383 File Handling\SpecialChar menuseparator
19384 File formats\SpecialChar menuseparator
19385 PDF (pdflatex)
19386 \end_layout
19387
19388 \end_inset
19389
19390 , where 
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 lyxeditor.bat
19396 \end_layout
19397
19398 \end_inset
19399
19400  is the previous wrapper.
19401  If SumatraPDF.exe is not in your command PATH, use its full file name.
19402 \end_layout
19403
19404 \begin_layout Standard
19405 Reverse search is triggered by double-click.
19406 \end_layout
19407
19408 \begin_layout Subsubsection*
19409 YAP (Cygwin)
19410 \end_layout
19411
19412 \begin_layout Standard
19413 First of all, make sure that yap is your default DVI viewer in the Windows
19414  environment, then launch it, choose its 
19415 \begin_inset Flex Noun
19416 status collapsed
19417
19418 \begin_layout Plain Layout
19419 View\SpecialChar menuseparator
19420 Options
19421 \end_layout
19422
19423 \end_inset
19424
19425  menu and select the 
19426 \begin_inset Quotes eld
19427 \end_inset
19428
19429 Inverse DVI Search
19430 \begin_inset Quotes erd
19431 \end_inset
19432
19433  tab.
19434  Click on the 
19435 \begin_inset Quotes eld
19436 \end_inset
19437
19438 New\SpecialChar ldots
19439
19440 \begin_inset Quotes erd
19441 \end_inset
19442
19443  button and, in the window that opens, enter 
19444 \begin_inset Quotes eld
19445 \end_inset
19446
19447 \SpecialChar LyX
19448  Editor
19449 \begin_inset Quotes erd
19450 \end_inset
19451
19452  (or any other name you like) in the 
19453 \begin_inset Quotes eld
19454 \end_inset
19455
19456 Name:
19457 \begin_inset Quotes erd
19458 \end_inset
19459
19460  field.
19461  Now click on the button labeled 
19462 \begin_inset Quotes eld
19463 \end_inset
19464
19465 \SpecialChar ldots
19466
19467 \begin_inset Quotes erd
19468 \end_inset
19469
19470  to open a file dialog and navigate to the directory containing the 
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475 lyxeditor.exe
19476 \end_layout
19477
19478 \end_inset
19479
19480  program (which is installed by default on Cygwin along with the \SpecialChar LyX
19481  executable).
19482  Select 
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 lyxeditor.exe
19488 \end_layout
19489
19490 \end_inset
19491
19492  and then specify the program arguments as 
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 -g %f %l
19498 \end_layout
19499
19500 \end_inset
19501
19502 .
19503  In this way, you will be using the 
19504 \emph on
19505 lyxsocket
19506 \emph default
19507  for communicating with \SpecialChar LyX
19508 .
19509  If, for whatever reason, you want to use the 
19510 \emph on
19511 lyxpipe
19512 \emph default
19513 , omit the 
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 -g
19519 \end_layout
19520
19521 \end_inset
19522
19523  option and be sure to specify the \SpecialChar LyX
19524 Server pipe path in the \SpecialChar LyX
19525  preferences.
19526 \end_layout
19527
19528 \begin_layout Standard
19529 In yap, reverse search is triggered by double-click.
19530 \end_layout
19531
19532 \begin_layout Subsubsection*
19533 SumatraPDF (Cygwin)
19534 \end_layout
19535
19536 \begin_layout Standard
19537 In order to use SumatraPDF for inverse search, enter 
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 SumatraPDF -inverse-search "lyxeditor -g %f %l"
19543 \end_layout
19544
19545 \end_inset
19546
19547  in the viewer setting in 
19548 \begin_inset Flex Noun
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 Preferences\SpecialChar menuseparator
19553 File Handling\SpecialChar menuseparator
19554 File formats\SpecialChar menuseparator
19555 PDF (pdflatex)
19556 \end_layout
19557
19558 \end_inset
19559
19560 .
19561  If SumatraPDF.exe is not in your command PATH, use its full posix path.
19562  The 
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 -g
19568 \end_layout
19569
19570 \end_inset
19571
19572  enables communication via the 
19573 \emph on
19574 lyxsocket
19575 \emph default
19576 .
19577  Again, omit the 
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 -g
19583 \end_layout
19584
19585 \end_inset
19586
19587  option if you want to use the 
19588 \emph on
19589 lyxpipe
19590 \emph default
19591 , and be sure to specify the \SpecialChar LyX
19592 Server pipe path in the \SpecialChar LyX
19593  preferences.
19594 \end_layout
19595
19596 \begin_layout Standard
19597 Reverse search is triggered by double-click.
19598 \end_layout
19599
19600 \begin_layout Section
19601 Forward search
19602 \end_layout
19603
19604 \begin_layout Standard
19605 Forward search is, as the name implies, in a sense the 
19606 \begin_inset Quotes eld
19607 \end_inset
19608
19609 opposite
19610 \begin_inset Quotes erd
19611 \end_inset
19612
19613  of reverse search.
19614  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
19615 .
19616  If forward search is set up (as described in what follows), you can put
19617  the cursor anywhere in your \SpecialChar LyX
19618  document, and hit 
19619 \begin_inset Flex Noun
19620 status collapsed
19621
19622 \begin_layout Plain Layout
19623 Navigate\SpecialChar menuseparator
19624 Forward search
19625 \end_layout
19626
19627 \end_inset
19628
19629  (or select 
19630 \begin_inset Flex Noun
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 Forward search
19635 \end_layout
19636
19637 \end_inset
19638
19639  in the context menu via right mouse click), and then the viewer will jump
19640  to that position as well.
19641  This implies, of course, that your viewer supports this function.
19642 \end_layout
19643
19644 \begin_layout Standard
19645 To make forward search possible, you first need to provide the generated
19646  output PDF/DVI file with additional information about the \SpecialChar TeX
19647  sources.
19648  This can be done via the methods described in the section 
19649 \begin_inset CommandInset ref
19650 LatexCommand ref
19651 reference "subsec:rev-search"
19652
19653 \end_inset
19654
19655 .
19656 \end_layout
19657
19658 \begin_layout Standard
19659 Additionally, you need to configure \SpecialChar LyX
19660  for using your viewers in 
19661 \begin_inset Flex Noun
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 Tools\SpecialChar menuseparator
19666 Preferences\SpecialChar menuseparator
19667 Output\SpecialChar menuseparator
19668 General
19669 \end_layout
19670
19671 \end_inset
19672
19673 .
19674  We provide a range of tested configurations for some viewers, which you
19675  can select from the drop down list.
19676  If none of these configurations suits you, you have to find out and enter
19677  a suitable configuration yourself.
19678  The definition syntax uses the following placeholders:
19679 \end_layout
19680
19681 \begin_layout Itemize
19682 \noindent
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 $$n
19688 \end_layout
19689
19690 \end_inset
19691
19692 : row number
19693 \end_layout
19694
19695 \begin_layout Itemize
19696 \noindent
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701 $$t
19702 \end_layout
19703
19704 \end_inset
19705
19706 : name of the (temporary) exported .tex file (without path)
19707 \end_layout
19708
19709 \begin_layout Itemize
19710 \noindent
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 $$f
19716 \end_layout
19717
19718 \end_inset
19719
19720 : name of the (temporary) exported .tex file (including path)
19721 \end_layout
19722
19723 \begin_layout Itemize
19724 \noindent
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 $$o
19730 \end_layout
19731
19732 \end_inset
19733
19734 : name of the exported output file (either dvi or pdf, depending on which
19735  one exists in the temporary directory)
19736 \end_layout
19737
19738 \begin_layout Standard
19739 Note that only some of the viewers provide full and usable forward search
19740  functionality out of the box, among them yap, xdvi, okular
19741 \begin_inset Foot
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 You might want to set 
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 okular --unique
19751 \end_layout
19752
19753 \end_inset
19754
19755  in 
19756 \begin_inset Flex Noun
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 Tools\SpecialChar menuseparator
19761 Preferences\SpecialChar menuseparator
19762 File Handling\SpecialChar menuseparator
19763 File
19764 \begin_inset space ~
19765 \end_inset
19766
19767 Formats
19768 \end_layout
19769
19770 \end_inset
19771
19772
19773 \end_layout
19774
19775 \end_inset
19776
19777 , qpdfview, and SumatraPDF
19778 \begin_inset Foot
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 SumatraPDF can also use DDE commands through the external program CMCDDE
19783  — downloadable from 
19784 \begin_inset CommandInset href
19785 LatexCommand href
19786 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
19787 literal "false"
19788
19789 \end_inset
19790
19791
19792 \end_layout
19793
19794 \end_inset
19795
19796 .
19797  Others, such as evince
19798 \begin_inset Foot
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 Forward search with evince can be achieved by means of third party helper
19803  scripts.
19804  Please refer to 
19805 \begin_inset CommandInset href
19806 LatexCommand href
19807 target "https://wiki.lyx.org/LyX/SyncTeX"
19808 literal "false"
19809
19810 \end_inset
19811
19812  for details.
19813 \end_layout
19814
19815 \end_inset
19816
19817 , require some extra tools in order to use forward search.
19818  While many of the widespread PDF viewers (most notably Adobe Reader) do
19819  not support forward search at all, some other viewers – e.
19820 \begin_inset space \thinspace{}
19821 \end_inset
19822
19823 g.
19824  xpdf – allow at least to reload the document and jump to a specific page
19825  of the file, so you can at least navigate 
19826 \begin_inset Quotes eld
19827 \end_inset
19828
19829 near
19830 \begin_inset Quotes erd
19831 \end_inset
19832
19833 .
19834  This latter functionality is provided by an external call of synctex (see
19835  the predefined example configurations).
19836  
19837 \end_layout
19838
19839 \begin_layout Standard
19840 Forward search works both with DVI and PDF output.
19841  \SpecialChar LyX
19842  simply checks which preview format you have used before (i.
19843 \begin_inset space \thinspace{}
19844 \end_inset
19845
19846 e., which format is already there in the temporary directory) and chooses
19847  the appropriate configuration for the respective format.
19848 \end_layout
19849
19850 \begin_layout Chapter
19851
19852 \change_deleted 564990737 1671097409
19853 Special Document Classes
19854 \change_unchanged
19855
19856 \end_layout
19857
19858 \begin_layout Section
19859
19860 \change_deleted 564990737 1669742044
19861 A&A Paper
19862 \end_layout
19863
19864 \begin_layout Standard
19865
19866 \change_deleted 564990737 1669742044
19867 by 
19868 \noun on
19869 Peter Sütterlin
19870 \end_layout
19871
19872 \begin_layout Subsection
19873
19874 \change_deleted 564990737 1669742044
19875 Introduction
19876 \end_layout
19877
19878 \begin_layout Standard
19879
19880 \change_deleted 564990737 1669742044
19881 This section describes how \SpecialChar LyX
19882  can be used to write articles for submission
19883  to the scientific journal 
19884 \emph on
19885 Astronomy and Astrophysics
19886 \emph default
19887  (
19888 \begin_inset Flex URL
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892
19893 https://www.aanda.org/
19894 \end_layout
19895
19896 \end_inset
19897
19898 ) using Version 5.01 of the document class 
19899 \family typewriter
19900 aa.cls
19901 \family default
19902 .
19903  This package can be downloaded from the ftp site
19904 \end_layout
19905
19906 \begin_layout Standard
19907
19908 \change_deleted 564990737 1669742044
19909 \begin_inset VSpace medskip
19910 \end_inset
19911
19912
19913 \end_layout
19914
19915 \begin_layout Standard
19916 \align center
19917
19918 \change_deleted 564990737 1669742044
19919 \begin_inset Flex URL
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923
19924 ftp://ftp.edpsciences.org/pub/aa/readme.html
19925 \end_layout
19926
19927 \end_inset
19928
19929
19930 \end_layout
19931
19932 \begin_layout Standard
19933
19934 \change_deleted 564990737 1669742044
19935 \begin_inset VSpace medskip
19936 \end_inset
19937
19938
19939 \end_layout
19940
19941 \begin_layout Standard
19942
19943 \change_deleted 564990737 1669742044
19944 A manual comes together with that package, and this text is not meant to
19945  replace the original manual but is merely a short guide in how to realize
19946  the correct form of your paper.
19947  
19948 \end_layout
19949
19950 \begin_layout Standard
19951
19952 \change_deleted 564990737 1669742044
19953 Please note that the publisher of the journal was changed from Springer
19954  to EDP Sciences starting January 1, 2001.
19955  That change involved also some slight changes to the style files, namely
19956  the removal of the thesaurus command.
19957  The \SpecialChar LyX
19958  class aa supports the newest version of these style files, V 5.01.
19959  If you have an older version installed, please upgrade.
19960  For compatibility, the old (version 4) layout has been kept as 
19961 \family sans
19962 article (A&A V4)
19963 \family default
19964 .
19965  Please refer to the comments in 
19966 \family typewriter
19967 \SpecialChar LyX
19968 Dir/layouts/aapaper.layout
19969 \family default
19970 .
19971 \end_layout
19972
19973 \begin_layout Subsection
19974
19975 \change_deleted 564990737 1669742044
19976 Getting started
19977 \end_layout
19978
19979 \begin_layout Standard
19980
19981 \change_deleted 564990737 1669742044
19982 It is recommended you start from the example template distributed with \SpecialChar LyX
19983 .
19984  If you are not using a template, note the following settings:
19985 \end_layout
19986
19987 \begin_layout Itemize
19988
19989 \change_deleted 564990737 1669742044
19990 Select 
19991 \family sans
19992 article (A&A)
19993 \family default
19994  in the 
19995 \family sans
19996 Document\SpecialChar menuseparator
19997 Settings
19998 \family default
19999  dialog (OK, that one was obvious).
20000 \end_layout
20001
20002 \begin_layout Itemize
20003
20004 \change_deleted 564990737 1669742044
20005 Don't change the option 
20006 \family sans
20007 Page
20008 \begin_inset space ~
20009 \end_inset
20010
20011 style
20012 \family default
20013 : Leave it set to 
20014 \family sans
20015 default
20016 \family default
20017 .
20018  The whole layout is done by the macros, you shouldn't change anything.
20019 \end_layout
20020
20021 \begin_layout Subsection
20022
20023 \change_deleted 564990737 1669742044
20024 The header block
20025 \end_layout
20026
20027 \begin_layout Standard
20028
20029 \change_deleted 564990737 1669742044
20030 First thing to enter is the header information.
20031  It consists of seven entries, of which some are optional.
20032  They are
20033 \end_layout
20034
20035 \begin_layout Itemize
20036
20037 \change_deleted 564990737 1669742044
20038
20039 \family sans
20040 Title
20041 \family default
20042 : [required] 
20043 \end_layout
20044
20045 \begin_layout Itemize
20046
20047 \change_deleted 564990737 1669742044
20048
20049 \family sans
20050 Subtitle
20051 \family default
20052 : [optional] 
20053 \end_layout
20054
20055 \begin_layout Itemize
20056
20057 \change_deleted 564990737 1669742044
20058
20059 \family sans
20060 Author
20061 \family default
20062 : [required]
20063 \end_layout
20064
20065 \begin_layout Itemize
20066
20067 \change_deleted 564990737 1669742044
20068
20069 \family sans
20070 Address
20071 \family default
20072 : [required]
20073 \end_layout
20074
20075 \begin_layout Itemize
20076
20077 \change_deleted 564990737 1669742044
20078
20079 \family sans
20080 Offprints
20081 \family default
20082 : [optional] if more than one author: whom to contact for offprint requests.
20083 \end_layout
20084
20085 \begin_layout Itemize
20086
20087 \change_deleted 564990737 1669742044
20088
20089 \family sans
20090 Mail
20091 \family default
20092 : [optional] mail address for contacts.
20093 \end_layout
20094
20095 \begin_layout Itemize
20096
20097 \change_deleted 564990737 1669742044
20098
20099 \family sans
20100 Date
20101 \family default
20102 : [required].
20103  Suggested format is 
20104 \family typewriter
20105 Received: <date>; Accepted <date> 
20106 \end_layout
20107
20108 \begin_layout Standard
20109
20110 \change_deleted 564990737 1669742044
20111 There is no need to issue the 
20112 \family typewriter
20113
20114 \backslash
20115 maketitle
20116 \family default
20117  command, this is done automatically by \SpecialChar LyX
20118  when the header is finished.
20119  Although the order of the single header entries doesn't matter it is advised
20120  to keep the above sequence, just to get the best optics and meets the layout
20121  of the real document.
20122 \end_layout
20123
20124 \begin_layout Standard
20125
20126 \change_deleted 564990737 1669742044
20127 If you want to place footnotes in the header block, e.
20128 \begin_inset space \thinspace{}
20129 \end_inset
20130
20131 g.
20132 \begin_inset space \space{}
20133 \end_inset
20134
20135 to state your present address, just use the standard footnote via the menu
20136  
20137 \family sans
20138 Insert\SpecialChar menuseparator
20139 Footnote.
20140
20141 \family default
20142  \SpecialChar LyX
20143  will automagically use the term 
20144 \family typewriter
20145
20146 \backslash
20147 thanks{}
20148 \family default
20149  in that case.
20150 \end_layout
20151
20152 \begin_layout Standard
20153
20154 \change_deleted 564990737 1669742044
20155 Under 
20156 \family sans
20157 Edit\SpecialChar menuseparator
20158 Text Style
20159 \family default
20160 , you'll find two insets which are relevant for the titling:
20161 \end_layout
20162
20163 \begin_layout Itemize
20164
20165 \change_deleted 564990737 1669742044
20166
20167 \family sans
20168 Institute
20169 \family typewriter
20170  
20171 \family default
20172 to mark corresponding author\SpecialChar breakableslash
20173 institute pairs.
20174  The institutes are numbered sequentially as they appear in the 
20175 \family sans
20176 Address
20177 \family default
20178  field, so you have to put a marker to each author.
20179 \end_layout
20180
20181 \begin_layout Itemize
20182
20183 \change_deleted 564990737 1669742044
20184
20185 \family sans
20186 Email
20187 \family default
20188  to supply an email address for fast contact.
20189 \end_layout
20190
20191 \begin_layout Standard
20192
20193 \change_deleted 564990737 1669742044
20194 In addition to these topics, the macros use one additional \SpecialChar LaTeX
20195  command that
20196  has no counterpart in \SpecialChar LyX
20197 :
20198 \end_layout
20199
20200 \begin_layout Itemize
20201
20202 \change_deleted 564990737 1669742044
20203
20204 \family typewriter
20205
20206 \backslash
20207 and
20208 \family default
20209  to separate different names for more than one author and institute, respectivel
20210 y.
20211 \end_layout
20212
20213 \begin_layout Standard
20214
20215 \change_deleted 564990737 1669742044
20216 The appropriate command has to be entered in \SpecialChar LyX
20217  and marked as \SpecialChar LaTeX
20218  code.
20219  See the examples.
20220  
20221 \end_layout
20222
20223 \begin_layout Subsection
20224
20225 \change_deleted 564990737 1669742044
20226 The abstract
20227 \end_layout
20228
20229 \begin_layout Standard
20230
20231 \change_deleted 564990737 1669742044
20232 The abstract should immediately follow the header block.
20233  With version 5 the abstract environment was changed to a command, and there
20234  is now a restriction to only one paragraph.
20235  In addition, it should contain an entry with the keywords.
20236  This is done via the paragraph style 
20237 \family sans
20238 Keywords
20239 \family default
20240 .
20241  Refer to the example paper.
20242 \end_layout
20243
20244 \begin_layout Subsection
20245
20246 \change_deleted 564990737 1669742044
20247 Supported environments
20248 \end_layout
20249
20250 \begin_layout Standard
20251
20252 \change_deleted 564990737 1669742044
20253 The A&A paper layout supports the following environments for structuring
20254  your text:
20255 \end_layout
20256
20257 \begin_layout Itemize
20258
20259 \change_deleted 564990737 1669742044
20260
20261 \family sans
20262 Standard
20263 \end_layout
20264
20265 \begin_layout Itemize
20266
20267 \change_deleted 564990737 1669742044
20268
20269 \family sans
20270 Section
20271 \end_layout
20272
20273 \begin_layout Itemize
20274
20275 \change_deleted 564990737 1669742044
20276
20277 \family sans
20278 Subsection
20279 \end_layout
20280
20281 \begin_layout Itemize
20282
20283 \change_deleted 564990737 1669742044
20284
20285 \family sans
20286 Subsubsection
20287 \end_layout
20288
20289 \begin_layout Itemize
20290
20291 \change_deleted 564990737 1669742044
20292
20293 \family sans
20294 Itemize
20295 \end_layout
20296
20297 \begin_layout Itemize
20298
20299 \change_deleted 564990737 1669742044
20300
20301 \family sans
20302 Enumerate
20303 \end_layout
20304
20305 \begin_layout Itemize
20306
20307 \change_deleted 564990737 1669742044
20308
20309 \family sans
20310 Description
20311 \end_layout
20312
20313 \begin_layout Itemize
20314
20315 \change_deleted 564990737 1669742044
20316
20317 \family sans
20318 Caption
20319 \end_layout
20320
20321 \begin_layout Itemize
20322
20323 \change_deleted 564990737 1669742044
20324
20325 \family sans
20326 Abstract
20327 \end_layout
20328
20329 \begin_layout Itemize
20330
20331 \change_deleted 564990737 1669742044
20332
20333 \family sans
20334 Acknowledgment
20335 \end_layout
20336
20337 \begin_layout Itemize
20338
20339 \change_deleted 564990737 1669742044
20340
20341 \family sans
20342 Bibliography
20343 \end_layout
20344
20345 \begin_layout Itemize
20346
20347 \change_deleted 564990737 1669742044
20348
20349 \family sans
20350 \SpecialChar LaTeX
20351
20352 \end_layout
20353
20354 \begin_layout Subsection
20355
20356 \change_deleted 564990737 1669742044
20357 Commands not supported by \SpecialChar LyX
20358
20359 \end_layout
20360
20361 \begin_layout Standard
20362
20363 \change_deleted 564990737 1669742044
20364 Some commands are not yet supported by the 
20365 \family sans
20366 paper (A&A)
20367 \family default
20368  layout for \SpecialChar LyX
20369 .
20370  Some have already been mentioned.
20371  For the sake of completeness, they are listed all together here:
20372 \end_layout
20373
20374 \begin_layout Itemize
20375
20376 \change_deleted 564990737 1669742044
20377
20378 \family typewriter
20379
20380 \backslash
20381 and
20382 \end_layout
20383
20384 \begin_layout Itemize
20385
20386 \change_deleted 564990737 1669742044
20387
20388 \family typewriter
20389
20390 \backslash
20391 authorrunning
20392 \end_layout
20393
20394 \begin_layout Itemize
20395
20396 \change_deleted 564990737 1669742044
20397
20398 \family typewriter
20399
20400 \backslash
20401 object{}
20402 \end_layout
20403
20404 \begin_layout Itemize
20405
20406 \change_deleted 564990737 1669742044
20407
20408 \family typewriter
20409
20410 \backslash
20411 titlerunning{}
20412 \end_layout
20413
20414 \begin_layout Standard
20415
20416 \change_deleted 564990737 1669742044
20417 If you want to use any of these commands, you have to enter them yourself.
20418  
20419 \series bold
20420 Do not forget to mark them as \SpecialChar LaTeX
20421  code!
20422 \end_layout
20423
20424 \begin_layout Subsection
20425
20426 \change_deleted 564990737 1669742044
20427 Figure and Table Floats
20428 \end_layout
20429
20430 \begin_layout Standard
20431
20432 \change_deleted 564990737 1669742044
20433 \SpecialChar LyX
20434  provides support for the necessary float environments 
20435 \family sans
20436 figure, figure*, table
20437 \family default
20438  and 
20439 \family sans
20440 table*
20441 \family default
20442 , therefore we won't tell much about it here.
20443  Refer to the 
20444 \emph on
20445 User's
20446 \begin_inset space ~
20447 \end_inset
20448
20449 Guide
20450 \emph default
20451 .
20452  Just remember that tables should be left-aligned.
20453  For that, select the table and change the alignment in 
20454 \family sans
20455 Edit\SpecialChar menuseparator
20456 Paragraph
20457 \begin_inset space ~
20458 \end_inset
20459
20460 Settings.
20461 \end_layout
20462
20463 \begin_layout Standard
20464
20465 \change_deleted 564990737 1669742044
20466 There is only one special thing: the figures with caption besides the figure.
20467  To create such a figure, you have to do the following:
20468 \end_layout
20469
20470 \begin_layout Enumerate
20471
20472 \change_deleted 564990737 1669742044
20473 Create a wide figure float: 
20474 \family sans
20475 Insert\SpecialChar menuseparator
20476 Float\SpecialChar menuseparator
20477 Figure
20478 \family default
20479 , then right click in the figure and select 
20480 \family sans
20481 Span
20482 \begin_inset space ~
20483 \end_inset
20484
20485 columns
20486 \family default
20487 .
20488 \end_layout
20489
20490 \begin_layout Enumerate
20491
20492 \change_deleted 564990737 1669742044
20493 Enter your caption text.
20494 \end_layout
20495
20496 \begin_layout Enumerate
20497
20498 \change_deleted 564990737 1669742044
20499 Press 
20500 \family sans
20501 Return
20502 \family default
20503  to move the cursor above the caption.
20504 \end_layout
20505
20506 \begin_layout Enumerate
20507
20508 \change_deleted 564990737 1669742044
20509 Insert your figure
20510 \end_layout
20511
20512 \begin_layout Enumerate
20513
20514 \change_deleted 564990737 1669742044
20515 Position the cursor behind the figure and insert a horizontal fill: 
20516 \family sans
20517 Insert\SpecialChar menuseparator
20518 Special
20519 \begin_inset space ~
20520 \end_inset
20521
20522 Character\SpecialChar menuseparator
20523 Horizontal
20524 \begin_inset space ~
20525 \end_inset
20526
20527 Fill
20528 \family default
20529 .
20530 \end_layout
20531
20532 \begin_layout Enumerate
20533
20534 \change_deleted 564990737 1669742044
20535 Switch to \SpecialChar LaTeX
20536  mode: 
20537 \family sans
20538 M-c
20539 \begin_inset space ~
20540 \end_inset
20541
20542 t
20543 \family default
20544 .
20545 \end_layout
20546
20547 \begin_layout Enumerate
20548
20549 \change_deleted 564990737 1669742044
20550 Enter 
20551 \family typewriter
20552
20553 \backslash
20554 parbox[b]{55mm}{
20555 \family default
20556 .
20557  
20558 \series bold
20559 Do not close the brace!
20560 \end_layout
20561
20562 \begin_layout Enumerate
20563
20564 \change_deleted 564990737 1669742044
20565 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
20566  mode and insert
20567  the closing brace: 
20568 \family sans
20569 M-c
20570 \begin_inset space ~
20571 \end_inset
20572
20573 t
20574 \family default
20575  
20576 \family typewriter
20577 }
20578 \family default
20579 .
20580 \end_layout
20581
20582 \begin_layout Standard
20583
20584 \change_deleted 564990737 1669742044
20585 Also, refer to the figures in the example paper.
20586 \end_layout
20587
20588 \begin_layout Subsection
20589
20590 \change_deleted 564990737 1669742044
20591 Referee layout
20592 \end_layout
20593
20594 \begin_layout Standard
20595
20596 \change_deleted 564990737 1669742044
20597 For submission, the paper has to be formated in a special double-spacing
20598  layout.
20599  For this purpose, you have to give the option 
20600 \family typewriter
20601 referee
20602 \family default
20603  to the document class.
20604  This must be done using the custom class options field in the 
20605 \family sans
20606 Document\SpecialChar menuseparator
20607 Settings
20608 \family default
20609  dialog.
20610  Just enter the string 
20611 \family typewriter
20612 referee
20613 \family default
20614  there.
20615 \end_layout
20616
20617 \begin_layout Subsection
20618
20619 \change_deleted 564990737 1669742044
20620 The example paper
20621 \end_layout
20622
20623 \begin_layout Standard
20624
20625 \change_deleted 564990737 1669742044
20626 The 
20627 \family sans
20628 Examples
20629 \family default
20630  directory contains an example paper written with \SpecialChar LyX
20631 .
20632  It is the example paper from the original macro package, translated to
20633  \SpecialChar LyX
20634 .
20635  Use it for inspiration, and compare the original \SpecialChar LaTeX
20636  code with \SpecialChar LyX
20637  way of writing.
20638 \end_layout
20639
20640 \begin_layout Section
20641
20642 \change_deleted 564990737 1671097429
20643 Dinbrief
20644 \end_layout
20645
20646 \begin_layout Standard
20647
20648 \change_deleted 564990737 1671097429
20649 The document class 
20650 \family sans
20651 dinbrief
20652 \family default
20653  can be used to type letters according to German conventions.
20654  A template file is included in 
20655 \family typewriter
20656 .../lyx/share/templates
20657 \family default
20658  for you to use as a starting point.
20659 \end_layout
20660
20661 \begin_layout Section
20662
20663 \change_deleted 564990737 1671097429
20664 Elsevier Journals
20665 \end_layout
20666
20667 \begin_layout Standard
20668
20669 \change_deleted 564990737 1671097429
20670 See the \SpecialChar LyX
20671  template file 
20672 \family typewriter
20673 elsarticle.lyx
20674 \family default
20675 .
20676  It contains all infos you need.
20677 \end_layout
20678
20679 \begin_layout Section
20680
20681 \change_deleted 564990737 1669755802
20682 ijmpc and ijmpd
20683 \end_layout
20684
20685 \begin_layout Standard
20686
20687 \change_deleted 564990737 1669755802
20688 by 
20689 \noun on
20690 Panayotis Papasotiriou
20691 \end_layout
20692
20693 \begin_layout Subsection
20694
20695 \change_deleted 564990737 1669755802
20696 Overview
20697 \end_layout
20698
20699 \begin_layout Standard
20700
20701 \change_deleted 564990737 1669755802
20702 The ijmpc package is a set of macros that facilitates electronic manuscript
20703  submission to the 
20704 \emph on
20705 International Journal of Modern Physics C
20706 \emph default
20707 .
20708  Similarly, the ijmpd package is for creating manuscripts to be submitted
20709  to the 
20710 \emph on
20711 International Journal of Modern Physics D
20712 \emph default
20713 .
20714  Both journals are published by World Scientific.
20715  The corresponding document classes are named 
20716 \family typewriter
20717 ws-ijmpc.cls
20718 \family default
20719  and 
20720 \family typewriter
20721 ws-ijmpd.cls
20722 \family default
20723 , respectively.
20724  These files, together with instructions for the authors, can be downloaded
20725  from the sites 
20726 \begin_inset Flex URL
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730
20731 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
20732 \end_layout
20733
20734 \end_inset
20735
20736  and 
20737 \begin_inset Flex URL
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741
20742 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
20743 \end_layout
20744
20745 \end_inset
20746
20747 .
20748  Both packages are modified versions of the standard 
20749 \begin_inset Quotes eld
20750 \end_inset
20751
20752 article
20753 \begin_inset Quotes erd
20754 \end_inset
20755
20756  package, and they are almost (but not exactly) identical.
20757  Most of their features are supported by \SpecialChar LyX
20758 .
20759  I have used \SpecialChar LyX
20760  successfully to write articles submitted to both journals
20761  without any problem.
20762 \end_layout
20763
20764 \begin_layout Subsection
20765
20766 \change_deleted 564990737 1669755802
20767 Writing a paper
20768 \end_layout
20769
20770 \begin_layout Standard
20771
20772 \change_deleted 564990737 1669755802
20773 As usual, the easiest way to write a paper is to start with a template.
20774  Click on 
20775 \family sans
20776 File\SpecialChar menuseparator
20777 New from
20778 \family default
20779  
20780 \family sans
20781 Template
20782 \family default
20783 , then choose the 
20784 \family typewriter
20785 ijmpc.lyx
20786 \family default
20787  or 
20788 \family typewriter
20789 ijmpd.lyx
20790 \family default
20791  template.
20792  This will give an (almost) empty document that includes the most common
20793  fields found in a manuscript.
20794  Simply overwrite the existing text (including the brackets, 
20795 \family typewriter
20796 <>
20797 \family default
20798 ) with your text.
20799  You should keep in mind the following remarks.
20800 \end_layout
20801
20802 \begin_layout Enumerate
20803
20804 \change_deleted 564990737 1669755802
20805 \SpecialChar LyX
20806  won't let you change the font size and the page style of the document,
20807  because such modifications are not allowed by both packages.
20808 \end_layout
20809
20810 \begin_layout Enumerate
20811
20812 \change_deleted 564990737 1669755802
20813 The language of the document should not be changed.
20814  Before previewing your paper, be sure that the babel package is not used.
20815  To do this, click on 
20816 \begin_inset Info
20817 type  "menu"
20818 arg   "dialog-show document"
20819 \end_inset
20820
20821  
20822 \family sans
20823 \SpecialChar menuseparator
20824 Language
20825 \family default
20826 , and select 
20827 \begin_inset Quotes eld
20828 \end_inset
20829
20830 None
20831 \begin_inset Quotes erd
20832 \end_inset
20833
20834  as 
20835 \family sans
20836 Language Package
20837 \family default
20838 .
20839 \end_layout
20840
20841 \begin_layout Enumerate
20842
20843 \change_deleted 564990737 1669755802
20844 The 
20845 \begin_inset Quotes eld
20846 \end_inset
20847
20848 Keywords
20849 \begin_inset Quotes erd
20850 \end_inset
20851
20852  style must be used to define keywords.
20853 \end_layout
20854
20855 \begin_layout Enumerate
20856
20857 \change_deleted 564990737 1669755802
20858 The ijmpc package provides a style named 
20859 \begin_inset Quotes eld
20860 \end_inset
20861
20862 Classification Codes
20863 \begin_inset Quotes erd
20864 \end_inset
20865
20866 , which can be used to define classification codes, such as PACS numbers.
20867  Note that this facility is not supported by the ijmpd package.
20868 \end_layout
20869
20870 \begin_layout Enumerate
20871
20872 \change_deleted 564990737 1669755802
20873 Several new environments are available: 
20874 \begin_inset Quotes eld
20875 \end_inset
20876
20877 Definition
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881
20882 \begin_inset Quotes eld
20883 \end_inset
20884
20885 Step
20886 \begin_inset Quotes erd
20887 \end_inset
20888
20889
20890 \begin_inset Quotes eld
20891 \end_inset
20892
20893 Example
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897
20898 \begin_inset Quotes eld
20899 \end_inset
20900
20901 Remark
20902 \begin_inset Quotes erd
20903 \end_inset
20904
20905
20906 \begin_inset Quotes eld
20907 \end_inset
20908
20909 Notation
20910 \begin_inset Quotes erd
20911 \end_inset
20912
20913
20914 \begin_inset Quotes eld
20915 \end_inset
20916
20917 Theorem
20918 \begin_inset Quotes erd
20919 \end_inset
20920
20921
20922 \begin_inset Quotes eld
20923 \end_inset
20924
20925 Proof
20926 \begin_inset Quotes erd
20927 \end_inset
20928
20929
20930 \begin_inset Quotes eld
20931 \end_inset
20932
20933 Corollary
20934 \begin_inset Quotes erd
20935 \end_inset
20936
20937
20938 \begin_inset Quotes eld
20939 \end_inset
20940
20941 Lemma
20942 \begin_inset Quotes erd
20943 \end_inset
20944
20945
20946 \begin_inset Quotes eld
20947 \end_inset
20948
20949 Proposition
20950 \begin_inset Quotes erd
20951 \end_inset
20952
20953
20954 \begin_inset Quotes eld
20955 \end_inset
20956
20957 Prop
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961
20962 \begin_inset Quotes eld
20963 \end_inset
20964
20965 Question
20966 \begin_inset Quotes erd
20967 \end_inset
20968
20969
20970 \begin_inset Quotes eld
20971 \end_inset
20972
20973 Claim
20974 \begin_inset Quotes erd
20975 \end_inset
20976
20977 , and 
20978 \begin_inset Quotes eld
20979 \end_inset
20980
20981 Conjecture
20982 \begin_inset Quotes erd
20983 \end_inset
20984
20985 .
20986  Their use is more or less obvious.
20987  \SpecialChar LyX
20988  supports all these environments; it will use the proper label, text style,
20989  and numbering scheme for each of them.
20990 \end_layout
20991
20992 \begin_layout Enumerate
20993
20994 \change_deleted 564990737 1669755802
20995 Both packages use basic citations; the natbib package should not be used.
20996  In \SpecialChar LyX
20997 , citation references are shown as usual; in the output, citations are
20998  shown as superscripts.
20999  If you want to use a citation as normal text, you should use the 
21000 \family typewriter
21001 refcite
21002 \family default
21003  command, e.
21004 \begin_inset space \thinspace{}
21005 \end_inset
21006
21007 g.
21008 \begin_inset space \space{}
21009 \end_inset
21010
21011
21012 \begin_inset Quotes eld
21013 \end_inset
21014
21015 See Ref.
21016 \begin_inset space \space{}
21017 \end_inset
21018
21019
21020 \family typewriter
21021
21022 \backslash
21023 refcite{key}
21024 \family default
21025
21026 \begin_inset Quotes erd
21027 \end_inset
21028
21029 .
21030 \end_layout
21031
21032 \begin_layout Enumerate
21033
21034 \change_deleted 564990737 1669755802
21035 There is no 
21036 \begin_inset Quotes eld
21037 \end_inset
21038
21039 Acknowledgments
21040 \begin_inset Quotes erd
21041 \end_inset
21042
21043  section in both packages.
21044  To put acknowledgments, just use the 
21045 \begin_inset Quotes eld
21046 \end_inset
21047
21048 Section*
21049 \begin_inset Quotes erd
21050 \end_inset
21051
21052  environment.
21053 \end_layout
21054
21055 \begin_layout Enumerate
21056
21057 \change_deleted 564990737 1669755802
21058 Appendices may be added to the paper, 
21059 \emph on
21060 after
21061 \emph default
21062  the Acknowledgments and 
21063 \shape italic
21064 before
21065 \shape default
21066  the References.
21067  \SpecialChar LyX
21068  provides a special environment, called 
21069 \begin_inset Quotes eld
21070 \end_inset
21071
21072 Appendices Section
21073 \begin_inset Quotes erd
21074 \end_inset
21075
21076  which marks the beginning of the appendices.
21077  This environment should be left blank; it just sends a \SpecialChar LaTeX
21078  command, but nothing
21079  is really printed.
21080  In \SpecialChar LyX
21081 , the word 
21082 \begin_inset Quotes eld
21083 \end_inset
21084
21085 Appendix
21086 \begin_inset Quotes erd
21087 \end_inset
21088
21089  is printed with blue letters, as a signal that all sections after that
21090  point are appendices.
21091  To write an appendix, use the 
21092 \begin_inset Quotes eld
21093 \end_inset
21094
21095 Appendix
21096 \begin_inset Quotes erd
21097 \end_inset
21098
21099  environment.
21100  \SpecialChar LyX
21101  will number each appendix with capital letters, as required by both journals.
21102  Note that 
21103 \begin_inset Quotes eld
21104 \end_inset
21105
21106 Appendices Section
21107 \begin_inset Quotes erd
21108 \end_inset
21109
21110  
21111 \emph on
21112 must
21113 \emph default
21114  be present before the first appendix; if not, all appendices will be numbered
21115  as normal sections in the output.
21116 \end_layout
21117
21118 \begin_layout Enumerate
21119
21120 \change_deleted 564990737 1669755802
21121 The ijmpc and the ijmpd packages use the 
21122 \family typewriter
21123 tbl
21124 \family default
21125  command to implement table captions.
21126  As a result, a table created by \SpecialChar LyX
21127  is printed correctly, but its caption
21128  is ignored.
21129  However, you can use some \SpecialChar TeX
21130  code to overcome this problem, so that captions
21131  are printed as expected.
21132  To do so, create a float table as usual, remove the caption, and replace
21133  it with the \SpecialChar TeX
21134  code 
21135 \family typewriter
21136
21137 \backslash
21138 tbl{
21139 \emph on
21140 your table caption
21141 \emph default
21142 }{
21143 \family default
21144  (sic); you must also the \SpecialChar TeX
21145  code 
21146 \family typewriter
21147 }
21148 \family default
21149  immediately after the tabular material.
21150  Study the example table included in the template files to see how this
21151  trick is implemented.
21152  Alternatively, If you need table captions, you should implement the whole
21153  table float in a 
21154 \family typewriter
21155 .tex
21156 \family default
21157  file, then include this file to the \SpecialChar LyX
21158  document (
21159 \family sans
21160 Insert\SpecialChar menuseparator
21161 File\SpecialChar menuseparator
21162 Child
21163 \begin_inset space ~
21164 \end_inset
21165
21166 Document
21167 \family default
21168 ).
21169  Details on how to create a table float can be found in the files 
21170 \family typewriter
21171 ws-ijmpc.tex
21172 \family default
21173  and 
21174 \family typewriter
21175 ws-ijmpd.tex
21176 \family default
21177 , included in the corresponding packages.
21178 \end_layout
21179
21180 \begin_layout Subsection
21181
21182 \change_deleted 564990737 1669755802
21183 Preparing a paper for submission
21184 \end_layout
21185
21186 \begin_layout Standard
21187
21188 \change_deleted 564990737 1669755802
21189 Before you submit your paper you must export the \SpecialChar LyX
21190  document as a \SpecialChar LaTeX
21191  file (
21192 \family sans
21193 File\SpecialChar menuseparator
21194 Export\SpecialChar menuseparator
21195 \SpecialChar LaTeX
21196
21197 \family default
21198 )
21199 \begin_inset Foot
21200 status open
21201
21202 \begin_layout Plain Layout
21203 Actually you have the choice between \SpecialChar LaTeX
21204  (plain) and pdflatex.
21205  If you intend to use pdflatex to prepare the paper, you should use the
21206  pdflatex option so that included graphics are converted to PDF format,
21207  ready for use by pdflatex.
21208 \end_layout
21209
21210 \end_inset
21211
21212 , then make the following changes to the resulting 
21213 \family typewriter
21214 .tex
21215 \family default
21216  file.
21217 \end_layout
21218
21219 \begin_layout Enumerate
21220
21221 \change_deleted 564990737 1669755802
21222 Remove the comment lines before the 
21223 \family typewriter
21224
21225 \backslash
21226 documentclass
21227 \family default
21228  command.
21229 \end_layout
21230
21231 \begin_layout Enumerate
21232
21233 \change_deleted 564990737 1669755802
21234 Remove everything between (and including) the 
21235 \family typewriter
21236
21237 \backslash
21238 makeatletter
21239 \family default
21240  and 
21241 \family typewriter
21242
21243 \backslash
21244 makeatother
21245 \family default
21246  commands, except for any commands you specifically put into the \SpecialChar LaTeX
21247  preamble.
21248 \end_layout
21249
21250 \begin_layout Standard
21251
21252 \change_deleted 564990737 1669755802
21253 The modified 
21254 \family typewriter
21255 .tex
21256 \family default
21257  file should be saved and processed through \SpecialChar LaTeX
21258  as many times as necessary.
21259  You may also want to check the resulting 
21260 \family typewriter
21261 .dvi
21262 \family default
21263  document.
21264 \change_unchanged
21265
21266 \end_layout
21267
21268 \begin_layout Section
21269
21270 \change_deleted 564990737 1669801478
21271 iopart
21272 \end_layout
21273
21274 \begin_layout Standard
21275
21276 \change_deleted 564990737 1669801478
21277 by 
21278 \noun on
21279 Uwe Stöhr
21280 \end_layout
21281
21282 \begin_layout Subsection
21283
21284 \change_deleted 564990737 1669801478
21285 Overview
21286 \end_layout
21287
21288 \begin_layout Standard
21289
21290 \change_deleted 564990737 1669801478
21291 The iopart package provides a document class to create electronic manuscript
21292  submission to the journals published by the Institute of Physics.
21293  Instructions for the authors how to create a paper using the iopart class
21294  can be downloaded together with the iopart package from the site 
21295 \begin_inset Flex URL
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299
21300 ftp://ftp.iop.org/pub/journals/latex2e
21301 \end_layout
21302
21303 \end_inset
21304
21305 .
21306 \end_layout
21307
21308 \begin_layout Subsection
21309
21310 \change_deleted 564990737 1669801478
21311 Writing a paper
21312 \end_layout
21313
21314 \begin_layout Standard
21315
21316 \change_deleted 564990737 1669801478
21317 The easiest way to write a paper is to start with the template 
21318 \emph on
21319 IOP-article.lyx
21320 \emph default
21321  that is available via 
21322 \family sans
21323 File\SpecialChar menuseparator
21324 New From Template
21325 \family default
21326  The template explains how to use the special text environments.
21327  Here are the most important advices:
21328 \end_layout
21329
21330 \begin_layout Itemize
21331
21332 \change_deleted 564990737 1669801478
21333 To be able to compile your document to a PDF, PS, or DVI, ensure that the
21334  no AMS packages are loaded in 
21335 \family sans
21336 Document\SpecialChar menuseparator
21337 Settings\SpecialChar menuseparator
21338 Math Options
21339 \family default
21340 !
21341 \end_layout
21342
21343 \begin_layout Itemize
21344
21345 \change_deleted 564990737 1669801478
21346
21347 \size normal
21348 The title environment defines the kind of your paper.
21349  So use one of the following environments for the title:
21350 \end_layout
21351
21352 \begin_deeper
21353 \begin_layout Itemize
21354
21355 \change_deleted 564990737 1669801478
21356
21357 \family sans
21358 \size normal
21359 Title
21360 \family default
21361  for a Paper
21362 \end_layout
21363
21364 \begin_layout Itemize
21365
21366 \change_deleted 564990737 1669801478
21367
21368 \family sans
21369 \size normal
21370 Review
21371 \family default
21372  for a Review
21373 \end_layout
21374
21375 \begin_layout Itemize
21376
21377 \change_deleted 564990737 1669801478
21378
21379 \family sans
21380 \size normal
21381 Topical
21382 \family default
21383  for a Topical review
21384 \end_layout
21385
21386 \begin_layout Itemize
21387
21388 \change_deleted 564990737 1669801478
21389
21390 \family sans
21391 \size normal
21392 Comment
21393 \family default
21394  for a Comment
21395 \end_layout
21396
21397 \begin_layout Itemize
21398
21399 \change_deleted 564990737 1669801478
21400
21401 \family sans
21402 \size normal
21403 Note
21404 \family default
21405  for a Note
21406 \end_layout
21407
21408 \begin_layout Itemize
21409
21410 \change_deleted 564990737 1669801478
21411
21412 \family sans
21413 \size normal
21414 Paper
21415 \family default
21416  for a Paper (same as Title)
21417 \end_layout
21418
21419 \begin_layout Itemize
21420
21421 \change_deleted 564990737 1669801478
21422
21423 \family sans
21424 \size normal
21425 Prelim
21426 \family default
21427  for a Preliminary communication
21428 \end_layout
21429
21430 \begin_layout Itemize
21431
21432 \change_deleted 564990737 1669801478
21433
21434 \family sans
21435 \size normal
21436 Rapid
21437 \family default
21438  for a Rapid communication
21439 \end_layout
21440
21441 \begin_layout Itemize
21442
21443 \change_deleted 564990737 1669801478
21444
21445 \family sans
21446 \size normal
21447 Letter
21448 \family default
21449  for a Letter to the editor
21450 \end_layout
21451
21452 \end_deeper
21453 \begin_layout Itemize
21454
21455 \change_deleted 564990737 1669801478
21456
21457 \size normal
21458 All title environments except of 
21459 \family sans
21460 Letter
21461 \family default
21462  can have an optional short title.
21463 \end_layout
21464
21465 \begin_layout Itemize
21466
21467 \change_deleted 564990737 1669801478
21468 There is a general title environment 
21469 \family sans
21470 Article
21471 \family default
21472  which is not directly supported by \SpecialChar LyX
21473 .
21474  This can be used as \SpecialChar TeX
21475  code when your document doesn't fit into one of the
21476  other title types.
21477 \end_layout
21478
21479 \begin_layout Standard
21480
21481 \change_deleted 564990737 1669801478
21482 For more informations like hints for special table and formula formatting,
21483  look at the IOP author guidelines.
21484 \change_unchanged
21485
21486 \end_layout
21487
21488 \begin_layout Section
21489
21490 \change_deleted 564990737 1670317155
21491 Kluwer
21492 \end_layout
21493
21494 \begin_layout Standard
21495
21496 \change_deleted 564990737 1670317155
21497 by 
21498 \noun on
21499 Panayotis Papasotiriou
21500 \end_layout
21501
21502 \begin_layout Subsection
21503
21504 \change_deleted 564990737 1670317155
21505 Overview
21506 \end_layout
21507
21508 \begin_layout Standard
21509
21510 \change_deleted 564990737 1670317155
21511 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
21512  that facilitates electronic manuscript submission to the journals they
21513  publish.
21514  Most known of them (at least in my domain of interest) are 
21515 \emph on
21516 Astrophysics and Space Science
21517 \emph default
21518  and 
21519 \emph on
21520 Solar Physics
21521 \emph default
21522 , but there are many others (see a complete list at 
21523 \begin_inset Flex URL
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527
21528 http://www.wkap.nl/jrnllist.htm/JRNLHOME
21529 \end_layout
21530
21531 \end_inset
21532
21533 ).
21534  The Kluwer package may be downloaded from the site 
21535 \begin_inset Flex URL
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539
21540 http://www.wkap.nl/kaphtml.htm/STYLEFILES
21541 \end_layout
21542
21543 \end_inset
21544
21545 .
21546  A complete user guide is contained in that package (but it can also be
21547  downloaded separately).
21548 \end_layout
21549
21550 \begin_layout Standard
21551
21552 \change_deleted 564990737 1670317155
21553 \SpecialChar LyX
21554  supports many features of the package but not everything.
21555  However, the \SpecialChar TeX
21556  code needed is reduced to some 
21557 \begin_inset Quotes eld
21558 \end_inset
21559
21560 peculiar
21561 \begin_inset Quotes erd
21562 \end_inset
21563
21564  commands of the package (see
21565 \begin_inset space ~
21566 \end_inset
21567
21568
21569 \begin_inset CommandInset ref
21570 LatexCommand ref
21571 reference "subsec:kluwer_peculiarities"
21572
21573 \end_inset
21574
21575 ).
21576  I have recently used \SpecialChar LyX
21577  to write an article submitted to the 
21578 \emph on
21579 Astrophysics and Space Science
21580 \emph default
21581  without any problem.
21582 \end_layout
21583
21584 \begin_layout Subsection
21585
21586 \change_deleted 564990737 1670317155
21587 Writing a paper
21588 \end_layout
21589
21590 \begin_layout Standard
21591
21592 \change_deleted 564990737 1670317155
21593 The easiest way to write a paper is to start with the Kluwer template file.
21594  Click on 
21595 \family sans
21596 File\SpecialChar menuseparator
21597 New from
21598 \family default
21599  
21600 \family sans
21601 Template
21602 \family default
21603 , then choose the 
21604 \family typewriter
21605 kluwer.lyx
21606 \family default
21607  template.
21608  This will give an (almost) empty document that includes the most common
21609  fields found in a manuscript and a short description of their use.
21610  As in most templates, simply overwrite the existing text (including the
21611  brackets, 
21612 \family typewriter
21613 <>
21614 \family default
21615 ) with the correct information.
21616 \end_layout
21617
21618 \begin_layout Subsection
21619
21620 \change_deleted 564990737 1670317155
21621 Preparing a paper for submission
21622 \end_layout
21623
21624 \begin_layout Standard
21625
21626 \change_deleted 564990737 1670317155
21627 As in the AAS\SpecialChar TeX
21628  package, before you submit your paper to a journal you must
21629  
21630 \begin_inset Quotes eld
21631 \end_inset
21632
21633 postprocess
21634 \begin_inset Quotes erd
21635 \end_inset
21636
21637  it as follows.
21638 \end_layout
21639
21640 \begin_layout Enumerate
21641
21642 \change_deleted 564990737 1670317155
21643 Export your paper as a \SpecialChar LaTeX
21644  file.
21645  To do this, click on 
21646 \family sans
21647 File\SpecialChar menuseparator
21648 Export\SpecialChar menuseparator
21649 \SpecialChar LaTeX
21650
21651 \family default
21652 .
21653  
21654 \end_layout
21655
21656 \begin_layout Enumerate
21657
21658 \change_deleted 564990737 1670317155
21659 Edit the resulting 
21660 \family typewriter
21661 .tex
21662 \family default
21663  file with a text editor and make the following changes
21664 \end_layout
21665
21666 \begin_deeper
21667 \begin_layout Enumerate
21668
21669 \change_deleted 564990737 1670317155
21670 remove the comment lines before the 
21671 \family typewriter
21672
21673 \backslash
21674 documentclass
21675 \family default
21676  command,
21677 \end_layout
21678
21679 \begin_layout Enumerate
21680
21681 \change_deleted 564990737 1670317155
21682 remove everything between (and including) the 
21683 \family typewriter
21684
21685 \backslash
21686 makeatletter
21687 \family default
21688  and 
21689 \family typewriter
21690
21691 \backslash
21692 makeatother
21693 \family default
21694  commands, except for any commands you specifically put into the \SpecialChar LaTeX
21695  preamble.
21696 \end_layout
21697
21698 \begin_layout Standard
21699
21700 \change_deleted 564990737 1670317155
21701 Save the resulting 
21702 \family typewriter
21703 .tex
21704 \family default
21705  file.
21706 \end_layout
21707
21708 \end_deeper
21709 \begin_layout Enumerate
21710
21711 \change_deleted 564990737 1670317155
21712 Run the 
21713 \family typewriter
21714 .tex
21715 \family default
21716  file through \SpecialChar LaTeX
21717  as many times as necessary (usually up to three).
21718 \end_layout
21719
21720 \begin_layout Enumerate
21721
21722 \change_deleted 564990737 1670317155
21723 View the resulting 
21724 \family typewriter
21725 .dvi
21726 \family default
21727  document using, e.
21728 \begin_inset space \thinspace{}
21729 \end_inset
21730
21731 g.
21732 \begin_inset space \space{}
21733 \end_inset
21734
21735
21736 \family sans
21737 xdvi
21738 \family default
21739 , and check if everything is OK (it should, if you didn't make any mistake).
21740 \end_layout
21741
21742 \begin_layout Subsection
21743
21744 \change_deleted 564990737 1670317155
21745 \begin_inset Quotes eld
21746 \end_inset
21747
21748 Peculiarities
21749 \begin_inset Quotes erd
21750 \end_inset
21751
21752  of the Kluwer package
21753 \begin_inset CommandInset label
21754 LatexCommand label
21755 name "subsec:kluwer_peculiarities"
21756
21757 \end_inset
21758
21759
21760 \end_layout
21761
21762 \begin_layout Standard
21763
21764 \change_deleted 564990737 1670317155
21765 The Kluwer package has the following 
21766 \begin_inset Quotes eld
21767 \end_inset
21768
21769 peculiarities
21770 \begin_inset Quotes erd
21771 \end_inset
21772
21773 .
21774 \end_layout
21775
21776 \begin_layout Enumerate
21777
21778 \change_deleted 564990737 1670317155
21779 It is possible to write multiple articles in the same \SpecialChar LaTeX
21780  file
21781 \begin_inset Foot
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785 I can't imagine any good reason to do this.
21786 \end_layout
21787
21788 \end_inset
21789
21790 .
21791  Each article must be included in the environment 
21792 \begin_inset Quotes eld
21793 \end_inset
21794
21795 article
21796 \begin_inset Quotes erd
21797 \end_inset
21798
21799 .
21800  Unfortunately, this environment cannot be omitted, even if you write just
21801  one article.
21802  Therefore, each article starts with the command 
21803 \family typewriter
21804
21805 \backslash
21806 begin{article}
21807 \family default
21808  and, obviously, ends with the command 
21809 \family typewriter
21810
21811 \backslash
21812 end{article}
21813 \family default
21814 .
21815  Although this can be implemented in \SpecialChar LyX
21816 , I didn't included it, since it looks
21817  ugly and can confuse the novice user.
21818  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
21819  code (the
21820  well-known 
21821 \begin_inset Quotes eld
21822 \end_inset
21823
21824 \SpecialChar TeX
21825  code
21826 \begin_inset Quotes erd
21827 \end_inset
21828
21829 ).
21830 \end_layout
21831
21832 \begin_layout Enumerate
21833
21834 \change_deleted 564990737 1670317155
21835 Information given at the beginning of the article (i.
21836 \begin_inset space \thinspace{}
21837 \end_inset
21838
21839 e.
21840 \begin_inset space \space{}
21841 \end_inset
21842
21843 title, subtitle, author, institution, running title, running author, abstract
21844  and keywords) must be included in an environment called 
21845 \begin_inset Quotes eld
21846 \end_inset
21847
21848 opening
21849 \begin_inset Quotes erd
21850 \end_inset
21851
21852 .
21853  This is not implemented in \SpecialChar LyX
21854 , so you must enter title, subtitle etc.
21855 \begin_inset space ~
21856 \end_inset
21857
21858 between two \SpecialChar TeX
21859  code lines (
21860 \family typewriter
21861
21862 \backslash
21863 begin{opening}
21864 \family default
21865  and 
21866 \family typewriter
21867
21868 \backslash
21869 end{opening}
21870 \family default
21871 ).
21872 \end_layout
21873
21874 \begin_layout Enumerate
21875
21876 \change_deleted 564990737 1670317155
21877 According to the user manual, the label of each bibliography item must be
21878  written as 
21879 \family typewriter
21880
21881 \backslash
21882 protect
21883 \backslash
21884 citeauthoryear{
21885 \family default
21886 \emph on
21887 author(s)
21888 \family typewriter
21889 \emph default
21890 }{
21891 \family default
21892 \emph on
21893 year
21894 \family typewriter
21895 \emph default
21896 }
21897 \family default
21898 .
21899 \end_layout
21900
21901 \begin_layout Standard
21902
21903 \change_deleted 564990737 1670317155
21904 The 
21905 \family typewriter
21906 kluwer.lyx
21907 \family default
21908  template takes care of all these 
21909 \begin_inset Quotes eld
21910 \end_inset
21911
21912 peculiarities
21913 \begin_inset Quotes erd
21914 \end_inset
21915
21916 .
21917  If you start a new paper using this template you don't need to do anything
21918  special.
21919  Just 
21920 \end_layout
21921
21922 \begin_layout Enumerate
21923
21924 \change_deleted 564990737 1670317155
21925 don't delete the \SpecialChar TeX
21926  code included in the template, and
21927 \end_layout
21928
21929 \begin_layout Enumerate
21930
21931 \change_deleted 564990737 1670317155
21932 copy the example bibliography item included in the template and modify it
21933  as necessary to enter new bibliography items.
21934 \end_layout
21935
21936 \begin_layout Section
21937
21938 \change_deleted 564990737 1671097446
21939 Paper
21940 \end_layout
21941
21942 \begin_layout Standard
21943
21944 \change_deleted 564990737 1671097446
21945 The document class 
21946 \family sans
21947 paper
21948 \family default
21949  provides an alternative to the standard 
21950 \family sans
21951 article
21952 \family default
21953  class.
21954  It provides similar functionality, but you might prefer this layout with
21955  sans serif sections, headings, and more.
21956 \end_layout
21957
21958 \begin_layout Section
21959
21960 \change_deleted 564990737 1671097446
21961 Springer Journals (
21962 \family sans
21963 svjour
21964 \family default
21965 )
21966 \end_layout
21967
21968 \begin_layout Standard
21969
21970 \change_deleted 564990737 1671097446
21971 by 
21972 \noun on
21973 Martin Vermeer
21974 \end_layout
21975
21976 \begin_layout Subsection
21977
21978 \change_deleted 564990737 1671097446
21979 Description
21980 \end_layout
21981
21982 \begin_layout Standard
21983
21984 \change_deleted 564990737 1671097446
21985 These are the layout files for some of the journal formats used by Springer
21986  Verlag and listed on 
21987 \begin_inset Flex URL
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 http://www.springer.de/author/tex/help-journals.html
21993 \end_layout
21994
21995 \end_inset
21996
21997 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
21998  now!).
21999  It is a modular system: the things common to all journals are implemented
22000  in 
22001 \family typewriter
22002 svjour.inc
22003 \family default
22004 , which journal-specific layout files (such as, e.
22005 \begin_inset space \thinspace{}
22006 \end_inset
22007
22008 g.
22009 \begin_inset space \space{}
22010 \end_inset
22011
22012
22013 \family typewriter
22014 svjog.layout
22015 \family default
22016  for Journal of Geodesy) can include.
22017 \end_layout
22018
22019 \begin_layout Standard
22020
22021 \change_deleted 564990737 1671097446
22022 This means that implementing support for any other Springer journal on this
22023  list is as simple as writing your own 
22024 \family typewriter
22025 sv
22026 \family default
22027 <myjournal>
22028 \family typewriter
22029 .layout
22030 \family default
22031  file following the outline given in 
22032 \family typewriter
22033 svjog.layout
22034 \family default
22035 .
22036  
22037 \end_layout
22038
22039 \begin_layout Standard
22040
22041 \change_deleted 564990737 1671097446
22042 It is reasonably well tested only for the Journal of Geodesy.
22043  
22044 \family typewriter
22045 svjour
22046 \family default
22047  and 
22048 \family typewriter
22049 svjog
22050 \family default
22051  come with the standard \SpecialChar LyX
22052  distribution.
22053  Install the relevant class file (downloaded from Springer) in a proper
22054  directory, reconfigure \SpecialChar LaTeX
22055  (in the te\SpecialChar TeX
22056  case by running 
22057 \family typewriter
22058 texhash
22059 \family default
22060 , as root if necessary — doesn't \SpecialChar LyX
22061  take care of this?), reconfigure \SpecialChar LyX
22062  and
22063  it should work.
22064 \end_layout
22065
22066 \begin_layout Subsection
22067
22068 \change_deleted 564990737 1671097446
22069 New styles
22070 \end_layout
22071
22072 \begin_layout Standard
22073
22074 \change_deleted 564990737 1671097446
22075 A large number of theorem-like styles — 
22076 \family sans
22077 Claim, Conjecture,
22078 \family default
22079  
22080 \family sans
22081 \SpecialChar ldots
22082 Theorem
22083 \family default
22084 .
22085 \end_layout
22086
22087 \begin_layout Standard
22088
22089 \change_deleted 564990737 1671097446
22090
22091 \family sans
22092 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
22093 _Title, Author_Running, Institute,
22094  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
22095 \family default
22096 .
22097  See the Springer class file documentation for details.
22098 \end_layout
22099
22100 \begin_layout Subsection
22101
22102 \change_deleted 564990737 1671097446
22103 Supported journals
22104 \end_layout
22105
22106 \begin_layout Itemize
22107
22108 \change_deleted 564990737 1671097446
22109
22110 \emph on
22111 Journal of Geodesy
22112 \emph default
22113
22114 \family typewriter
22115 svjog.layout
22116 \family default
22117  — Martin Vermeer
22118 \end_layout
22119
22120 \begin_layout Itemize
22121
22122 \change_deleted 564990737 1671097446
22123
22124 \emph on
22125 Probability Theory and Related Fields
22126 \emph default
22127
22128 \family typewriter
22129 svprobth.layout
22130 \family default
22131  — Jean-Marc Lasgouttes
22132 \end_layout
22133
22134 \begin_layout Standard
22135
22136 \change_deleted 564990737 1671097446
22137 Add your own, it isn't so hard!
22138 \end_layout
22139
22140 \begin_layout Subsection
22141
22142 \change_deleted 564990737 1671097446
22143 Credits
22144 \end_layout
22145
22146 \begin_layout Standard
22147
22148 \change_deleted 564990737 1671097446
22149 These files are partly based on the older 
22150 \family typewriter
22151 ejour2.layout
22152 \family default
22153 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
22154  2.09 style
22155  file from Springer.
22156  All this, and the 
22157 \family typewriter
22158 ejour2
22159 \family default
22160  layout, are now defunct.
22161  Jean-Marc Lasgouttes helped out big in making me find my way around the
22162  \SpecialChar LyX
22163  layout file mechanism.
22164 \end_layout
22165
22166 \begin_layout Subsection
22167
22168 \change_deleted 564990737 1671097446
22169 Bugs
22170 \end_layout
22171
22172 \begin_layout Standard
22173
22174 \change_deleted 564990737 1671097446
22175 Probably.
22176  But probably less than in the old hacked-\SpecialChar LaTeX
22177  
22178 \family typewriter
22179 ejour2
22180 \family default
22181 .
22182 \end_layout
22183
22184 \begin_layout Chapter
22185 \SpecialChar LyX
22186  Features needing Extra Software
22187 \end_layout
22188
22189 \begin_layout Section
22190 Checking \SpecialChar TeX
22191
22192 \end_layout
22193
22194 \begin_layout Standard
22195 by 
22196 \noun on
22197 Asger Alstrup
22198 \end_layout
22199
22200 \begin_layout Subsection
22201 Introduction
22202 \end_layout
22203
22204 \begin_layout Standard
22205 If you have the 
22206 \family typewriter
22207 chktex
22208 \family default
22209  program installed
22210 \begin_inset Foot
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214
22215 \family typewriter
22216 chktex
22217 \family default
22218  is not yet available when you are using the \SpecialChar LaTeX
22219  distribution MiK\SpecialChar TeX
22220 .
22221 \end_layout
22222
22223 \end_inset
22224
22225 , you'll find in the 
22226 \family sans
22227 Tools
22228 \family default
22229  menu the entry: 
22230 \family sans
22231 Check
22232 \begin_inset space ~
22233 \end_inset
22234
22235 TeX
22236 \family default
22237 .
22238  You can get 
22239 \family typewriter
22240 chktex
22241 \family default
22242  from CTAN,
22243 \begin_inset Newline newline
22244 \end_inset
22245
22246
22247 \begin_inset CommandInset href
22248 LatexCommand href
22249 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
22250 literal "false"
22251
22252 \end_inset
22253
22254 .
22255 \end_layout
22256
22257 \begin_layout Standard
22258 The 
22259 \family sans
22260 Chk\SpecialChar TeX
22261
22262 \family default
22263  package is a program that was written by 
22264 \begin_inset Flex Noun
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 Jens T.
22269 \begin_inset space ~
22270 \end_inset
22271
22272 Berger Thielemann
22273 \end_layout
22274
22275 \end_inset
22276
22277  in frustration because some constructs in \SpecialChar LaTeX
22278  are sometimes non-intuitive,
22279  and easy to forget.
22280  The program runs over your \SpecialChar LaTeX
22281  file, checks the integrity of the file, and
22282  flags some common errors.
22283  In other technical words, it is 
22284 \family typewriter
22285 lint
22286 \family default
22287  for \SpecialChar LaTeX
22288 .
22289 \end_layout
22290
22291 \begin_layout Standard
22292 Well, what is a syntax checker doing in \SpecialChar LyX
22293  which is supposed to produce correct
22294  \SpecialChar LaTeX
22295  anyways? The answer is simple: Just as 
22296 \family typewriter
22297 Lint
22298 \family default
22299  not only checks the 
22300 \emph on
22301 syntax
22302 \emph default
22303  of C programs, but also does 
22304 \emph on
22305 semantic
22306 \emph default
22307  checks for type-errors, 
22308 \family sans
22309 Chk\SpecialChar TeX
22310
22311 \family default
22312  catches some common 
22313 \emph on
22314 typographic
22315 \emph default
22316  errors, in addition to the syntactical ones.
22317  Specifically, 
22318 \family sans
22319 Chk\SpecialChar TeX
22320
22321 \family default
22322  is capable of detecting several common errors, such as
22323 \end_layout
22324
22325 \begin_layout Itemize
22326 Ellipsis detection:
22327 \begin_inset Newline newline
22328 \end_inset
22329
22330 Use \SpecialChar ldots
22331  instead of ...
22332 \end_layout
22333
22334 \begin_layout Itemize
22335 No space in front of/after parenthesis:
22336 \begin_inset Newline newline
22337 \end_inset
22338
22339 ( wrong spacing )
22340 \end_layout
22341
22342 \begin_layout Itemize
22343 Enforcement of normal space after common abbreviations:
22344 \begin_inset Newline newline
22345 \end_inset
22346
22347 e.
22348 \begin_inset space \thinspace{}
22349 \end_inset
22350
22351 g.
22352 \begin_inset space \space{}
22353 \end_inset
22354
22355 is too wide spacing.
22356 \end_layout
22357
22358 \begin_layout Itemize
22359 Enforcement of end-of-sentence space when the last sentence ends with a
22360  capital letter:
22361 \begin_inset Newline newline
22362 \end_inset
22363
22364 This is a TEST.
22365  And this is wrong spacing.
22366 \end_layout
22367
22368 \begin_layout Itemize
22369 Space in front of labels and similar commands:
22370 \begin_inset Newline newline
22371 \end_inset
22372
22373 The label should stick right up to the text to avoid falling to a wrong
22374  page.
22375  
22376 \begin_inset CommandInset label
22377 LatexCommand label
22378 name "sec:chktex"
22379
22380 \end_inset
22381
22382  
22383 \begin_inset Foot
22384 status collapsed
22385
22386 \begin_layout Plain Layout
22387 This footnote is in danger of falling off to a wrong page
22388 \end_layout
22389
22390 \end_inset
22391
22392  The label is separated too much.
22393 \end_layout
22394
22395 \begin_layout Itemize
22396 Space in front of references, instead of hard spaces:
22397 \begin_inset Newline newline
22398 \end_inset
22399
22400 If you have bad luck, the text will break right between the referenced text
22401  and reference number, and that's a pity.
22402  See section 
22403 \begin_inset CommandInset ref
22404 LatexCommand ref
22405 reference "sec:chktex"
22406
22407 \end_inset
22408
22409 .
22410 \end_layout
22411
22412 \begin_layout Itemize
22413 Use of 
22414 \begin_inset Quotes eld
22415 \end_inset
22416
22417 x
22418 \begin_inset Quotes erd
22419 \end_inset
22420
22421  instead of 
22422 \begin_inset Formula $\times$
22423 \end_inset
22424
22425  between numbers:
22426 \begin_inset Newline newline
22427 \end_inset
22428
22429 2x2 looks cheap compared to 
22430 \begin_inset Formula $2\times2$
22431 \end_inset
22432
22433 .
22434 \end_layout
22435
22436 \begin_layout Standard
22437 and more \SpecialChar ldots
22438  It is an invaluable tool when you are 
22439 \begin_inset Quotes eld
22440 \end_inset
22441
22442 finishing up
22443 \begin_inset Quotes erd
22444 \end_inset
22445
22446  your document before printing, and you should run it right after the obligatory
22447  spelling check, and before you go fine tuning the typesetting.
22448 \end_layout
22449
22450 \begin_layout Subsection
22451 How to use it
22452 \end_layout
22453
22454 \begin_layout Standard
22455 If you have the program installed, usage is as simple as choosing 
22456 \family sans
22457 Tools\SpecialChar menuseparator
22458 Check
22459 \begin_inset space ~
22460 \end_inset
22461
22462 TeX
22463 \family default
22464 .
22465  This will make \SpecialChar LyX
22466  generate a \SpecialChar LaTeX
22467  file of your document, start 
22468 \family sans
22469 Chk\SpecialChar TeX
22470
22471 \family default
22472  to check it, and then make \SpecialChar LyX
22473  insert 
22474 \begin_inset Quotes eld
22475 \end_inset
22476
22477 error boxes
22478 \begin_inset Quotes erd
22479 \end_inset
22480
22481  with the warnings from 
22482 \family sans
22483 Chk\SpecialChar TeX
22484
22485 \family default
22486 , if there were any.
22487  The warnings will be placed close to the point of the mistake, and you
22488  can quickly find them by using the 
22489 \family sans
22490 Navigate\SpecialChar menuseparator
22491 Error
22492 \family default
22493  menu item, or the shortcut key 
22494 \family sans
22495 C-g
22496 \family default
22497  from the default 
22498 \family typewriter
22499 cua
22500 \family default
22501  bind file.
22502  Open the error boxes by clicking on them with the mouse, or use the shortcut
22503  key 
22504 \family sans
22505 C-i
22506 \family default
22507  from 
22508 \family typewriter
22509 cua
22510 \family default
22511  bindings, or the corresponding 
22512 \family sans
22513 C-o
22514 \family default
22515  for the alternate 
22516 \family typewriter
22517 emacs
22518 \family default
22519  bind file.
22520  Read the warning and correct the mistake, if it is a mistake.
22521  If you have trouble understanding what the warning is about, you can safely
22522  ignore it.
22523  Remember that there is a hidden layer between the document on screen and
22524  the technical details in invoking 
22525 \family sans
22526 Chk\SpecialChar TeX
22527
22528 \family default
22529 , and this gap can make some warnings seem arcane or just plain silly.
22530 \end_layout
22531
22532 \begin_layout Standard
22533 This document is an excellent testing bed for the feature, and it should
22534  provide quite a few warnings for you to fiddle with.
22535  Since computers are only so smart, expect most of the warnings to be false
22536  alarms, though.
22537 \end_layout
22538
22539 \begin_layout Subsection
22540 How to fine tune it
22541 \end_layout
22542
22543 \begin_layout Standard
22544 Sometimes, you'll find that 
22545 \family sans
22546 Chk\SpecialChar TeX
22547
22548 \family default
22549  makes more noise than suits your mood.
22550  Then you can choose not to use it, wait until your mood changes, or try
22551  to customize 
22552 \family sans
22553 Chk\SpecialChar TeX
22554
22555 \family default
22556  to get better along with you.
22557 \end_layout
22558
22559 \begin_layout Standard
22560 Although 
22561 \family sans
22562 Chk\SpecialChar TeX
22563
22564 \family default
22565  
22566 \emph on
22567 is
22568 \emph default
22569  very configurable and extensible, you should not expect to solve all problems
22570  with 
22571 \family sans
22572 Chk\SpecialChar TeX
22573
22574 \family default
22575  in \SpecialChar LyX
22576  this way.
22577  Since \SpecialChar LyX
22578  has to generate a somewhat special \SpecialChar LaTeX
22579  file to be able to match the
22580  line numbers from the 
22581 \family sans
22582 Chk\SpecialChar TeX
22583
22584 \family default
22585  output
22586 \begin_inset Foot
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590 You can inspect the specific output from 
22591 \family sans
22592 chktex
22593 \family default
22594  by using 
22595 \family sans
22596 Document\SpecialChar menuseparator
22597 \SpecialChar LaTeX
22598
22599 \begin_inset space ~
22600 \end_inset
22601
22602 Log
22603 \family default
22604  right after a 
22605 \family sans
22606 chktex
22607 \family default
22608  run.
22609 \end_layout
22610
22611 \end_inset
22612
22613  to the internal document structure, some of the warnings will not appear
22614  correctly.
22615  There are two things you can do about this:
22616 \end_layout
22617
22618 \begin_layout Itemize
22619 Fine tune the 
22620 \family sans
22621 Chk\SpecialChar TeX
22622
22623 \family default
22624  invocation command line in 
22625 \begin_inset Flex Noun
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 Tools\SpecialChar menuseparator
22630 Preferences\SpecialChar menuseparator
22631 Output\SpecialChar menuseparator
22632 LaTeX\SpecialChar menuseparator
22633 CheckTeX command
22634 \end_layout
22635
22636 \end_inset
22637
22638 , or the global 
22639 \family sans
22640 Chk\SpecialChar TeX
22641
22642 \family default
22643  installation configuration file (usually with the file 
22644 \family typewriter
22645 chktexrc
22646 \family default
22647 ).
22648  See below to learn what warnings can be enabled and disabled on the command
22649  line.
22650 \end_layout
22651
22652 \begin_layout Itemize
22653 Export your document as a raw \SpecialChar LaTeX
22654  file using 
22655 \family sans
22656 File\SpecialChar menuseparator
22657 Export\SpecialChar menuseparator
22658 \SpecialChar LaTeX
22659
22660 \family default
22661  and run 
22662 \family typewriter
22663 chktex
22664 \family default
22665  manually on that.
22666  Invoked in this way, it can be a hassle to find the corresponding place
22667  in the document inside \SpecialChar LyX
22668 , but with a little patience, you should be able
22669  to do it.
22670 \end_layout
22671
22672 \begin_layout Standard
22673 Here follows the warning messages that can be enabled and disabled in 
22674 \family sans
22675 Preferences
22676 \family default
22677 .
22678  Use 
22679 \family typewriter
22680 -n#
22681 \family default
22682  to disable a warning, and 
22683 \family typewriter
22684 -w#
22685 \family default
22686  to enable a warning.
22687  The emphasized entries are disabled by default, because the default is
22688  "
22689 \family typewriter
22690 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
22691 \family default
22692 ".
22693 \end_layout
22694
22695 \begin_layout Standard
22696 Notice that you should only use the options that enable and disable warnings,
22697  because \SpecialChar LyX
22698  relies on some of the other command line parameters to be set
22699  in a specific way to have a chance to communicate with 
22700 \family typewriter
22701 chktex
22702 \family default
22703 .
22704 \end_layout
22705
22706 \begin_layout Enumerate
22707
22708 \size small
22709 \emph on
22710 Command terminated with space.
22711 \end_layout
22712
22713 \begin_layout Enumerate
22714
22715 \size small
22716 Non-breaking space (
22717 \begin_inset Quotes eld
22718 \end_inset
22719
22720
22721 \family typewriter
22722 ~
22723 \family default
22724
22725 \begin_inset Quotes erd
22726 \end_inset
22727
22728 ) should have been used.
22729 \end_layout
22730
22731 \begin_layout Enumerate
22732
22733 \size small
22734 \emph on
22735 You should enclose the previous parenthesis with 
22736 \begin_inset Quotes eld
22737 \end_inset
22738
22739
22740 \family typewriter
22741 {}
22742 \family default
22743
22744 \begin_inset Quotes erd
22745 \end_inset
22746
22747 .
22748 \end_layout
22749
22750 \begin_layout Enumerate
22751
22752 \size small
22753 Italic correction (
22754 \begin_inset Quotes eld
22755 \end_inset
22756
22757
22758 \family typewriter
22759
22760 \backslash
22761 /
22762 \family default
22763
22764 \begin_inset Quotes erd
22765 \end_inset
22766
22767 ) found in non-italic buffer.
22768 \end_layout
22769
22770 \begin_layout Enumerate
22771
22772 \size small
22773 Italic correction (
22774 \begin_inset Quotes eld
22775 \end_inset
22776
22777
22778 \family typewriter
22779
22780 \backslash
22781 /
22782 \family default
22783
22784 \begin_inset Quotes erd
22785 \end_inset
22786
22787 ) found more than once.
22788 \end_layout
22789
22790 \begin_layout Enumerate
22791
22792 \size small
22793 \emph on
22794 No italic correction (
22795 \begin_inset Quotes eld
22796 \end_inset
22797
22798
22799 \family typewriter
22800
22801 \backslash
22802 /
22803 \family default
22804
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808 ) found.
22809 \end_layout
22810
22811 \begin_layout Enumerate
22812
22813 \size small
22814 Accent command 
22815 \begin_inset Quotes eld
22816 \end_inset
22817
22818
22819 \family typewriter
22820 cmd
22821 \family default
22822
22823 \begin_inset Quotes erd
22824 \end_inset
22825
22826  needs use of 
22827 \begin_inset Quotes eld
22828 \end_inset
22829
22830
22831 \family typewriter
22832 cmd
22833 \family default
22834
22835 \begin_inset Quotes erd
22836 \end_inset
22837
22838 .
22839 \end_layout
22840
22841 \begin_layout Enumerate
22842
22843 \size small
22844 Wrong length of dash may have been used.
22845 \end_layout
22846
22847 \begin_layout Enumerate
22848
22849 \size small
22850 \emph on
22851 \begin_inset Quotes eld
22852 \end_inset
22853
22854
22855 \family typewriter
22856 %s
22857 \family default
22858
22859 \begin_inset Quotes erd
22860 \end_inset
22861
22862  expected, found 
22863 \begin_inset Quotes eld
22864 \end_inset
22865
22866
22867 \family typewriter
22868 %s
22869 \family default
22870
22871 \begin_inset Quotes erd
22872 \end_inset
22873
22874 .
22875 \end_layout
22876
22877 \begin_layout Enumerate
22878
22879 \size small
22880 Solo 
22881 \begin_inset Quotes eld
22882 \end_inset
22883
22884
22885 \family typewriter
22886 %s
22887 \family default
22888
22889 \begin_inset Quotes erd
22890 \end_inset
22891
22892  found.
22893 \end_layout
22894
22895 \begin_layout Enumerate
22896
22897 \size small
22898 You should use 
22899 \begin_inset Quotes eld
22900 \end_inset
22901
22902
22903 \family typewriter
22904 %s
22905 \family default
22906
22907 \begin_inset Quotes erd
22908 \end_inset
22909
22910  to achieve an ellipsis.
22911 \end_layout
22912
22913 \begin_layout Enumerate
22914
22915 \size small
22916 Inter-word spacing (
22917 \begin_inset Quotes eld
22918 \end_inset
22919
22920
22921 \family typewriter
22922
22923 \backslash
22924
22925 \family default
22926  
22927 \begin_inset Quotes eld
22928 \end_inset
22929
22930 ) should perhaps be used.
22931 \end_layout
22932
22933 \begin_layout Enumerate
22934
22935 \size small
22936 Inter-sentence spacing (
22937 \begin_inset Quotes eld
22938 \end_inset
22939
22940
22941 \family typewriter
22942
22943 \backslash
22944 @
22945 \family default
22946
22947 \begin_inset Quotes erd
22948 \end_inset
22949
22950 ) should perhaps be used.
22951 \end_layout
22952
22953 \begin_layout Enumerate
22954
22955 \size small
22956 Could not find argument for command.
22957 \end_layout
22958
22959 \begin_layout Enumerate
22960
22961 \size small
22962 No match found for 
22963 \begin_inset Quotes eld
22964 \end_inset
22965
22966
22967 \family typewriter
22968 %s
22969 \family default
22970
22971 \begin_inset Quotes erd
22972 \end_inset
22973
22974 .
22975 \end_layout
22976
22977 \begin_layout Enumerate
22978
22979 \size small
22980 Math mode still on at end of \SpecialChar LaTeX
22981  file.
22982 \end_layout
22983
22984 \begin_layout Enumerate
22985
22986 \size small
22987 Number of 
22988 \begin_inset Quotes eld
22989 \end_inset
22990
22991
22992 \family typewriter
22993 char
22994 \family default
22995
22996 \begin_inset Quotes erd
22997 \end_inset
22998
22999  doesn't match the number of 
23000 \begin_inset Quotes eld
23001 \end_inset
23002
23003
23004 \family typewriter
23005 char
23006 \family default
23007
23008 \begin_inset Quotes erd
23009 \end_inset
23010
23011 .
23012 \end_layout
23013
23014 \begin_layout Enumerate
23015
23016 \size small
23017 You should use either 
23018 \family typewriter
23019
23020 \begin_inset Quotes eld
23021 \end_inset
23022
23023
23024 \family default
23025  or 
23026 \family typewriter
23027
23028 \begin_inset Quotes erd
23029 \end_inset
23030
23031
23032 \family default
23033  as an alternative to 
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037
23038 \family typewriter
23039 "
23040 \family default
23041
23042 \begin_inset Quotes erd
23043 \end_inset
23044
23045 .
23046 \end_layout
23047
23048 \begin_layout Enumerate
23049
23050 \size small
23051 You should use "
23052 \family typewriter
23053 '
23054 \family default
23055 " (ASCII 39) instead of "
23056 \family typewriter
23057 ´
23058 \family default
23059 " (ASCII 180).
23060 \end_layout
23061
23062 \begin_layout Enumerate
23063
23064 \size small
23065 User-specified pattern found.
23066 \end_layout
23067
23068 \begin_layout Enumerate
23069
23070 \size small
23071 This command might not be intended.
23072 \end_layout
23073
23074 \begin_layout Enumerate
23075
23076 \size small
23077 \emph on
23078 Comment displayed.
23079 \end_layout
23080
23081 \begin_layout Enumerate
23082
23083 \size small
23084 Either 
23085 \family typewriter
23086 ''
23087 \backslash
23088 ,'
23089 \family default
23090  or 
23091 \family typewriter
23092 '
23093 \backslash
23094 ,''
23095 \family default
23096  will look better.
23097 \end_layout
23098
23099 \begin_layout Enumerate
23100
23101 \size small
23102 Delete this space to maintain correct page references.
23103 \end_layout
23104
23105 \begin_layout Enumerate
23106
23107 \size small
23108 \emph on
23109 You might wish to put this between a pair of 
23110 \begin_inset Quotes eld
23111 \end_inset
23112
23113
23114 \family typewriter
23115 {}
23116 \family default
23117
23118 \begin_inset Quotes erd
23119 \end_inset
23120
23121 .
23122 \end_layout
23123
23124 \begin_layout Enumerate
23125
23126 \size small
23127 You ought to remove spaces in front of punctuation.
23128 \end_layout
23129
23130 \begin_layout Enumerate
23131
23132 \size small
23133 Could not execute \SpecialChar LaTeX
23134  command.
23135 \end_layout
23136
23137 \begin_layout Enumerate
23138
23139 \size small
23140 Don't use 
23141 \family typewriter
23142
23143 \backslash
23144 /
23145 \family default
23146  in front of small punctuation.
23147 \end_layout
23148
23149 \begin_layout Enumerate
23150
23151 \family typewriter
23152 \size small
23153 $
23154 \backslash
23155 times$
23156 \family default
23157  may look prettier here.
23158 \end_layout
23159
23160 \begin_layout Enumerate
23161
23162 \size small
23163 \emph on
23164 Multiple spaces detected in output.
23165 \end_layout
23166
23167 \begin_layout Enumerate
23168
23169 \size small
23170 This text may be ignored.
23171 \end_layout
23172
23173 \begin_layout Enumerate
23174
23175 \size small
23176 Use 
23177 \family typewriter
23178
23179 \begin_inset Quotes eld
23180 \end_inset
23181
23182
23183 \family default
23184  to begin quotation, not 
23185 \family typewriter
23186 '
23187 \family default
23188 .
23189 \end_layout
23190
23191 \begin_layout Enumerate
23192
23193 \size small
23194 Use 
23195 \family typewriter
23196 '
23197 \family default
23198  to end quotation, not 
23199 \family typewriter
23200
23201 \begin_inset Quotes eld
23202 \end_inset
23203
23204
23205 \family default
23206 .
23207 \end_layout
23208
23209 \begin_layout Enumerate
23210
23211 \size small
23212 Don't mix quotes.
23213 \end_layout
23214
23215 \begin_layout Enumerate
23216
23217 \size small
23218 You should perhaps use 
23219 \begin_inset Quotes eld
23220 \end_inset
23221
23222
23223 \family typewriter
23224 cmd
23225 \family default
23226
23227 \begin_inset Quotes erd
23228 \end_inset
23229
23230  instead.
23231 \end_layout
23232
23233 \begin_layout Enumerate
23234
23235 \size small
23236 You should put a space in front of/after parenthesis.
23237 \end_layout
23238
23239 \begin_layout Enumerate
23240
23241 \size small
23242 You should avoid spaces in front of/after parenthesis.
23243 \end_layout
23244
23245 \begin_layout Enumerate
23246
23247 \size small
23248 \emph on
23249 You should not use punctuation in front of/after quotes.
23250 \end_layout
23251
23252 \begin_layout Enumerate
23253
23254 \size small
23255 Double space found.
23256 \end_layout
23257
23258 \begin_layout Enumerate
23259
23260 \size small
23261 You should put punctuation outside inner/inside display math mode.
23262 \end_layout
23263
23264 \begin_layout Enumerate
23265
23266 \size small
23267 You ought to not use primitive \SpecialChar TeX
23268  in \SpecialChar LaTeX
23269  code.
23270 \end_layout
23271
23272 \begin_layout Enumerate
23273
23274 \size small
23275 You should remove spaces in front of 
23276 \begin_inset Quotes eld
23277 \end_inset
23278
23279
23280 \family typewriter
23281 %s
23282 \family default
23283
23284 \begin_inset Quotes erd
23285 \end_inset
23286
23287
23288 \end_layout
23289
23290 \begin_layout Enumerate
23291
23292 \size small
23293 \begin_inset Quotes eld
23294 \end_inset
23295
23296
23297 \family typewriter
23298 %s
23299 \family default
23300
23301 \begin_inset Quotes erd
23302 \end_inset
23303
23304  is normally not followed by 
23305 \begin_inset Quotes eld
23306 \end_inset
23307
23308
23309 \family typewriter
23310 %c
23311 \family default
23312
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316 .
23317 \end_layout
23318
23319 \begin_layout Standard
23320 In later versions of \SpecialChar LyX
23321 , we hope to provide a more complete interface to this
23322  tool (and it's smaller cousin 
23323 \family typewriter
23324 lacheck
23325 \family default
23326 ) to exploit the full power of it.
23327  But it's not exactly useless as it is now: go try it on one of your existing
23328  documents of a certain length and be surprised.
23329 \end_layout
23330
23331 \begin_layout Section
23332 Version Control in \SpecialChar LyX
23333
23334 \end_layout
23335
23336 \begin_layout Standard
23337 by
23338 \noun on
23339  Lars Gullik Bjønnes 
23340 \noun default
23341 and 
23342 \noun on
23343 Pavel Sanda
23344 \end_layout
23345
23346 \begin_layout Subsection
23347 Introduction
23348 \end_layout
23349
23350 \begin_layout Standard
23351 \SpecialChar LyX
23352  supports some of the most basic RCS/CVS/SVN/GIT commands.
23353  If you need something a bit more sophisticated you will have to do that
23354  manually in a terminal.
23355 \end_layout
23356
23357 \begin_layout Standard
23358 Also note that CVS support is not as good as subversion support, so we advise
23359  using SVN instead.
23360  A good place to start learning Subversion is the SVN Book
23361 \begin_inset Foot
23362 status collapsed
23363
23364 \begin_layout Plain Layout
23365 \begin_inset CommandInset href
23366 LatexCommand href
23367 target "http://svnbook.red-bean.com/"
23368 literal "false"
23369
23370 \end_inset
23371
23372
23373 \end_layout
23374
23375 \end_inset
23376
23377 .
23378  In the case of RCS you should read 
23379 \begin_inset Quotes eld
23380 \end_inset
23381
23382 rcsintro
23383 \begin_inset Quotes erd
23384 \end_inset
23385
23386  (a man file, read it with 
23387 \family typewriter
23388 man rcsintro
23389 \family default
23390 ).
23391  This file describes all the basic features of RCS.
23392  You should especially notice the comment about a RCS directory, and the
23393  notion of a master RCS file (the file ending in 
23394 \family typewriter
23395 ,v
23396 \family default
23397 ).
23398 \end_layout
23399
23400 \begin_layout Standard
23401 Before you begin to use the version control features in \SpecialChar LyX
23402 , you should be
23403  familiar with RCS/CVS/SVN/GIT usage.
23404  The implementation in \SpecialChar LyX
23405  assumes a recent version of the GNU RCS or CVS/SVN
23406  package — no guarantees are made for older versions.
23407  Most of the log messages are not currently displayed after operations —
23408  you can check them in the Messages pane if you are unsure.
23409  Regular users of version control will appreciate the VC toolbar, which
23410  can be enabled via 
23411 \family sans
23412 View\SpecialChar menuseparator
23413 Toolbars\SpecialChar menuseparator
23414 Version
23415 \begin_inset space ~
23416 \end_inset
23417
23418 Control
23419 \family default
23420 .
23421 \end_layout
23422
23423 \begin_layout Standard
23424 For introducing your own external commands consult 
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 vc-command
23430 \end_layout
23431
23432 \end_inset
23433
23434  in the manual 
23435 \emph on
23436 \SpecialChar LyX
23437  Functions
23438 \emph default
23439 .
23440 \end_layout
23441
23442 \begin_layout Standard
23443 It is strongly recommended to store documents in uncompressed format if
23444  using version control (uncheck 
23445 \family sans
23446 Document\SpecialChar menuseparator
23447 Compressed
23448 \family default
23449  if it is checked): Uncompressed LyX documents are text files and therefore
23450  for merging two different versions by version control systems.
23451  Compressed LyX documents are binary files, which cannot be merged by version
23452  control systems.
23453 \end_layout
23454
23455 \begin_layout Subsection
23456 RCS commands in \SpecialChar LyX
23457
23458 \end_layout
23459
23460 \begin_layout Standard
23461 The following sections describe the RCS commands supported by \SpecialChar LyX
23462 .
23463  You can find them in the 
23464 \family sans
23465 File\SpecialChar menuseparator
23466 Version
23467 \begin_inset space ~
23468 \end_inset
23469
23470 Control
23471 \family default
23472  submenu.
23473  \SpecialChar LyX
23474  was tested against RCS 5.7/5.8.
23475 \end_layout
23476
23477 \begin_layout Subsubsection
23478
23479 \family sans
23480 Register
23481 \end_layout
23482
23483 \begin_layout Standard
23484 If your document is not under revision control, this is the only item shown
23485  in the menu.
23486  And if it is under revision control, the 
23487 \family sans
23488 Register
23489 \family default
23490  item is not visible.
23491  
23492 \end_layout
23493
23494 \begin_layout Standard
23495 This command registers your document with RCS (unless you are under the
23496  directory managed by CVS)\SpecialChar endofsentence
23497  You are asked interactively to supply an initial
23498  description of the document.
23499  The document is now set in Read-Only mode and you have to 
23500 \family sans
23501 Check
23502 \begin_inset space ~
23503 \end_inset
23504
23505 Out
23506 \begin_inset space ~
23507 \end_inset
23508
23509 For
23510 \begin_inset space ~
23511 \end_inset
23512
23513 Edit
23514 \family default
23515 , before making any changes to it.
23516  A document under revision control has a 
23517 \begin_inset Quotes eld
23518 \end_inset
23519
23520 [RCS:<version> <locker>]
23521 \begin_inset Quotes erd
23522 \end_inset
23523
23524  item tagged to the filename in the minibuffer.
23525 \end_layout
23526
23527 \begin_layout Standard
23528 RCS command that is run:
23529 \end_layout
23530
23531 \begin_layout LyX-Code
23532
23533 \family typewriter
23534 ci -q -u -i -t-"<initial description>" <file-name>
23535 \end_layout
23536
23537 \begin_layout Standard
23538 Read 
23539 \family typewriter
23540 man ci
23541 \family default
23542  to understand the switches.
23543  
23544 \end_layout
23545
23546 \begin_layout Subsubsection
23547
23548 \family sans
23549 Check In Changes
23550 \end_layout
23551
23552 \begin_layout Standard
23553 When you are finished editing a file, you check in your changes.
23554  When you do this, you are asked for a description of the changes.
23555  This is stored in the history log.
23556  The version number is bumped, your changes are applied to the master RCS
23557  file, the document is unlocked and set to Read-Only mode.
23558 \end_layout
23559
23560 \begin_layout Itemize
23561 RCS command: 
23562 \family typewriter
23563 ci -q -u -m"<description>" <file-name>
23564 \end_layout
23565
23566 \begin_layout Subsubsection
23567
23568 \family sans
23569 Check Out For Edit
23570 \end_layout
23571
23572 \begin_layout Standard
23573 By doing this you lock the document so that only you can edit it.
23574  This will also make the document Read-Write only for you.
23575  You will usually continue editing for a while and when you are finished
23576  you check in your changes.
23577  The status line is changed to reflect that you have locked the file.
23578 \end_layout
23579
23580 \begin_layout Itemize
23581 RCS command: 
23582 \family typewriter
23583 co -q -l <file-name>
23584 \end_layout
23585
23586 \begin_layout Subsubsection
23587
23588 \family sans
23589 Revert To Repository Version
23590 \end_layout
23591
23592 \begin_layout Standard
23593 This will discard all changes made to the document since the last check
23594  in.
23595  You get a warning before changes are discarded.
23596 \end_layout
23597
23598 \begin_layout Itemize
23599 RCS command: 
23600 \family typewriter
23601 co -f -u<version> <file-name>
23602 \end_layout
23603
23604 \begin_layout Subsubsection
23605
23606 \family sans
23607 Copy
23608 \end_layout
23609
23610 \begin_layout Standard
23611 This will create a copy of the current document.
23612  Since RCS does not support copy operations natively, the version history
23613  is not preserved, and the copy is added as a new file.
23614  It requires a clean document without any changes since the last checkin.
23615  You are asked for a file name and a description of the copy operation.
23616  After that the copy is created, both locally and in the repository.
23617  If the parent directories of the copied and original document differ, all
23618  relative paths of included files of the copy are adjusted (like in 
23619 \family sans
23620 File\SpecialChar menuseparator
23621 Save As
23622 \family default
23623 \SpecialChar ldots
23624 ).
23625  Finally, the copy is loaded instead of the original document.
23626 \end_layout
23627
23628 \begin_layout Labeling
23629 \labelwidthstring 00.00.0000
23630 RCS
23631 \begin_inset space ~
23632 \end_inset
23633
23634 commands: 
23635 \begin_inset space ~
23636 \end_inset
23637
23638
23639 \begin_inset Newline newline
23640 \end_inset
23641
23642 Copy 
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647
23648 \family typewriter
23649 \begin_inset Quotes qld
23650 \end_inset
23651
23652 <file-name>
23653 \begin_inset Quotes qld
23654 \end_inset
23655
23656
23657 \end_layout
23658
23659 \end_inset
23660
23661  to 
23662 \begin_inset Flex Code
23663 status collapsed
23664
23665 \begin_layout Plain Layout
23666
23667 \family typewriter
23668 \begin_inset Quotes qld
23669 \end_inset
23670
23671 <new-file-name>
23672 \begin_inset Quotes qld
23673 \end_inset
23674
23675
23676 \end_layout
23677
23678 \end_inset
23679
23680
23681 \begin_inset Newline newline
23682 \end_inset
23683
23684
23685 \begin_inset Flex Code
23686 status collapsed
23687
23688 \begin_layout Plain Layout
23689 ci -q -u 
23690 \family typewriter
23691 -i 
23692 \begin_inset Quotes qld
23693 \end_inset
23694
23695 <new-file-name>
23696 \begin_inset Quotes qld
23697 \end_inset
23698
23699
23700 \end_layout
23701
23702 \end_inset
23703
23704
23705 \end_layout
23706
23707 \begin_layout Subsubsection
23708
23709 \family sans
23710 Undo Last Checkin
23711 \end_layout
23712
23713 \begin_layout Standard
23714 This makes as if the last check in never happened.
23715  No changes are made to the document loaded into \SpecialChar LyX
23716 , but the last version
23717  is removed from the master RCS file.
23718 \end_layout
23719
23720 \begin_layout Itemize
23721 RCS command: 
23722 \family typewriter
23723 rcs -o<version> <file-name>
23724 \end_layout
23725
23726 \begin_layout Subsubsection
23727
23728 \family sans
23729 Show History
23730 \end_layout
23731
23732 \begin_layout Standard
23733 This shows the complete history of the RCS document.
23734  The output of 
23735 \family typewriter
23736 rlog <file-name>
23737 \family default
23738  is shown in a browser.
23739  See 
23740 \family typewriter
23741 man rlog
23742 \family default
23743  for more info.
23744 \end_layout
23745
23746 \begin_layout Subsubsection
23747 Revision info
23748 \end_layout
23749
23750 \begin_layout Standard
23751 \SpecialChar LyX
23752  supports RCS version number, author name, date and time of last commit.
23753  All those are extracted from 
23754 \family typewriter
23755 rlog -r <file-name>
23756 \family default
23757 .
23758  See 
23759 \begin_inset CommandInset ref
23760 LatexCommand ref
23761 reference "subsec:VCS-Revision-Information"
23762
23763 \end_inset
23764
23765  for details.
23766 \end_layout
23767
23768 \begin_layout Subsection
23769 CVS commands in \SpecialChar LyX
23770
23771 \end_layout
23772
23773 \begin_layout Standard
23774 A subset of CVS operations is supported by \SpecialChar LyX
23775 .
23776  You can find the commands in the 
23777 \family sans
23778 File\SpecialChar menuseparator
23779 Version
23780 \begin_inset space ~
23781 \end_inset
23782
23783 Control
23784 \family default
23785  submenu.
23786  The version control system SVN is more powerful, so please use it instead
23787  of CVS if possible.
23788 \end_layout
23789
23790 \begin_layout Subsubsection
23791
23792 \family sans
23793 General CVS usage
23794 \end_layout
23795
23796 \begin_layout Standard
23797 If you start from scratch with CVS you have to create your repository and
23798  checkout the working copy with external tools.
23799  If you're using a client-server setup you may need to login before doing
23800  the first repository checkout.
23801 \end_layout
23802
23803 \begin_layout Standard
23804 If your documents are under revision control and others are using the same
23805  repository problems arise when different changes to the same document at
23806  the same location happen.
23807  Standard CVS repositories don't operate with a file locking mechanism.
23808  This may be surprising, but conflicts only occur if people disagree on
23809  the proper content of the same part of a document.
23810  So, if co-workers are used to communicate regularly, these conflicts occur
23811  rarely.
23812  If they don't communicate they have a fundamental problem anyway.
23813  Nevertheless some people like to work with so called 
23814 \begin_inset Quotes eld
23815 \end_inset
23816
23817 reserved checkouts
23818 \begin_inset Quotes erd
23819 \end_inset
23820
23821 .
23822  If they do so the working copy of all files is readonly when checked out
23823  first and the user starts editing after using a special command to make
23824  the working copy writable.
23825  When the changes are checked in the working copy returns to readonly state.
23826  With \SpecialChar LyX
23827  one has to edit the 
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 .cvsrc
23833 \end_layout
23834
23835 \end_inset
23836
23837  file and add the line 
23838 \begin_inset Flex Code
23839 status collapsed
23840
23841 \begin_layout Plain Layout
23842 cvs -r
23843 \end_layout
23844
23845 \end_inset
23846
23847  to work with reserved checkouts.
23848  The benefit is the possibility to see who is using a writable copy of some
23849  document.
23850  It's not guaranteed only one user makes a copy writable.
23851 \end_layout
23852
23853 \begin_layout Standard
23854 \SpecialChar LyX
23855  tries to guess if you're using reserved or non-reserved checkouts.
23856  If your working copy is readonly or it is writable and an additional copy
23857  of your document exists in the CVS/Base sub-directory a reserved otherwise
23858  a non-reserved checkout is assumed.
23859  When a reserved checkout is detected you have to use 
23860 \begin_inset Flex Noun
23861 status collapsed
23862
23863 \begin_layout Plain Layout
23864 Check Out
23865 \end_layout
23866
23867 \end_inset
23868
23869  to make your working copy writable if it's readonly.
23870  After doing so the 
23871 \begin_inset Flex Noun
23872 status collapsed
23873
23874 \begin_layout Plain Layout
23875 Check In
23876 \end_layout
23877
23878 \end_inset
23879
23880  operation is possible and that makes your working copy readonly again after
23881  transferring your changes to the repository.
23882 \end_layout
23883
23884 \begin_layout Standard
23885 More information about CVS can be found here 
23886 \begin_inset Flex URL
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890
23891 http://www.nongnu.org/cvs
23892 \end_layout
23893
23894 \end_inset
23895
23896  and here 
23897 \begin_inset Flex URL
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901
23902 http://ximbiot.com/cvs
23903 \end_layout
23904
23905 \end_inset
23906
23907 .
23908 \end_layout
23909
23910 \begin_layout Standard
23911 Read 
23912 \family typewriter
23913 man cvs
23914 \family default
23915  to understand the sub-commands and the switches mentioned below.
23916 \end_layout
23917
23918 \begin_layout Subsubsection
23919
23920 \family sans
23921 Register
23922 \end_layout
23923
23924 \begin_layout Standard
23925 If your document is not under revision control, this is the only item shown
23926  in the menu.
23927  And if it is under revision control, the 
23928 \family sans
23929 Register
23930 \family default
23931  item is not visible.
23932  
23933 \end_layout
23934
23935 \begin_layout Standard
23936 This command registers in CVS your document 
23937 \begin_inset Flex Strong
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941
23942 \emph on
23943 only
23944 \end_layout
23945
23946 \end_inset
23947
23948  in the case you have already the documents directory under CVS control
23949  (in particular 
23950 \family typewriter
23951 CVS/Entries
23952 \family default
23953  file exists).
23954  This means you have to create or checkout the archive by yourself using
23955  external tools.
23956  (In case you forget that step \SpecialChar LyX
23957  registers the document with RCS.)
23958 \end_layout
23959
23960 \begin_layout Standard
23961 Then you are asked interactively to supply an initial description of the
23962  document.
23963  Don't forget that registered file is not yet checked in.
23964 \end_layout
23965
23966 \begin_layout Standard
23967 CVS command that is run: 
23968 \family typewriter
23969 cvs -q add -m"<entered message>" "<file-name>"
23970 \end_layout
23971
23972 \begin_layout Standard
23973 The term 
23974 \family typewriter
23975 "<file-name>"
23976 \family default
23977  above and for all other CVS commands is an abbreviation for 
23978 \begin_inset Quotes eld
23979 \end_inset
23980
23981 change the current working directory to file location and use the file name
23982  without path component as argument
23983 \begin_inset Quotes erd
23984 \end_inset
23985
23986 .
23987 \end_layout
23988
23989 \begin_layout Subsubsection
23990
23991 \family sans
23992 Check In Changes
23993 \end_layout
23994
23995 \begin_layout Standard
23996 When you are finished editing a file, you commit your changes.
23997  When you do this and you had changed the document, you are asked for a
23998  description of the changes.
23999  After that changes are written to the repository.
24000  In case you didn't change the document and a reserved checkout is detected
24001  the reservation made on 
24002 \begin_inset Flex Noun
24003 status collapsed
24004
24005 \begin_layout Plain Layout
24006 Check Out
24007 \end_layout
24008
24009 \end_inset
24010
24011  is undone.
24012 \end_layout
24013
24014 \begin_layout Labeling
24015 \labelwidthstring 00.00.0000
24016 CVS
24017 \begin_inset space ~
24018 \end_inset
24019
24020 command: 
24021 \begin_inset space ~
24022 \end_inset
24023
24024
24025 \begin_inset Newline newline
24026 \end_inset
24027
24028
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033 cvs 
24034 \family typewriter
24035 -q commit -m"<description>" "<file-name>"
24036 \end_layout
24037
24038 \end_inset
24039
24040  or
24041 \begin_inset Newline newline
24042 \end_inset
24043
24044
24045 \begin_inset Flex Code
24046 status collapsed
24047
24048 \begin_layout Plain Layout
24049 cvs -q unedit 
24050 \family typewriter
24051 "<file-name>"
24052 \end_layout
24053
24054 \end_inset
24055
24056
24057 \end_layout
24058
24059 \begin_layout Subsubsection
24060
24061 \family sans
24062 Check Out Changes
24063 \end_layout
24064
24065 \begin_layout Standard
24066 When you are sharing a repository with others, you may have to incorporate
24067  their changes into your working copy.
24068 \end_layout
24069
24070 \begin_layout Standard
24071 CVS command: 
24072 \family typewriter
24073 cvs -q update "<file-name>"
24074 \end_layout
24075
24076 \begin_layout Standard
24077 If a readonly checkout is detected the working copy is made writable and
24078  reserved.
24079 \end_layout
24080
24081 \begin_layout Standard
24082 CVS command: 
24083 \family typewriter
24084 cvs -q edit "<file-name>"
24085 \end_layout
24086
24087 \begin_layout Subsubsection
24088
24089 \family sans
24090 Revert To Repository Version
24091 \end_layout
24092
24093 \begin_layout Standard
24094 This will discard all changes made to the document since the last check
24095  in.
24096  You get a warning before changes are discarded.
24097  Firstly the file is deleted, secondly CVS update command is run.
24098 \end_layout
24099
24100 \begin_layout Standard
24101 CVS command: 
24102 \family typewriter
24103 cvs -q update "<file-name>"
24104 \end_layout
24105
24106 \begin_layout Standard
24107 If a reserved checkout is detected and the working copy has no changes only
24108  the reservation is undone.
24109 \end_layout
24110
24111 \begin_layout Standard
24112 CVS command: 
24113 \family typewriter
24114 cvs -q unedit "<file-name>"
24115 \end_layout
24116
24117 \begin_layout Subsubsection
24118
24119 \family sans
24120 Copy
24121 \end_layout
24122
24123 \begin_layout Standard
24124 This will create a copy of the current document.
24125  Since CVS does not support copy operations natively, the version history
24126  is not preserved, and the copy is added as a new file.
24127  It requires a clean document without any changes since the last checkin.
24128  You are asked for a file name and a description of the copy operation.
24129  After that the copy is created, both locally and in the repository.
24130  If the parent directories of the copied and original document differ, all
24131  relative paths of included files of the copy are adjusted (like in 
24132 \family sans
24133 File\SpecialChar menuseparator
24134 Save As
24135 \family default
24136 \SpecialChar ldots
24137 ).
24138  Finally, the copy is loaded instead of the original document.
24139 \end_layout
24140
24141 \begin_layout Labeling
24142 \labelwidthstring 00.00.0000
24143 CVS
24144 \begin_inset space ~
24145 \end_inset
24146
24147 commands: 
24148 \begin_inset space ~
24149 \end_inset
24150
24151
24152 \begin_inset Newline newline
24153 \end_inset
24154
24155 Copy 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 "<file-name>"
24161 \end_layout
24162
24163 \end_inset
24164
24165  to 
24166 \begin_inset Flex Code
24167 status collapsed
24168
24169 \begin_layout Plain Layout
24170 "<new-file-name>"
24171 \end_layout
24172
24173 \end_inset
24174
24175
24176 \begin_inset Newline newline
24177 \end_inset
24178
24179
24180 \begin_inset Flex Code
24181 status collapsed
24182
24183 \begin_layout Plain Layout
24184 cvs -q add "<new-file-name>"
24185 \end_layout
24186
24187 \end_inset
24188
24189
24190 \end_layout
24191
24192 \begin_layout Subsubsection
24193
24194 \family sans
24195 Rename
24196 \end_layout
24197
24198 \begin_layout Standard
24199 This will rename the current document.
24200  Since CVS does not support rename operations natively, the version history
24201  is not preserved, the renamed document is added as a new file, and the
24202  original document is deleted.
24203  It requires a clean document without any changes since the last checkin.
24204  You are asked for a file name and a description of the rename operation.
24205  After that the document is renamed, both locally and in the repository.
24206  If the parent directories of the new and old file names differ, all relative
24207  paths of included files are adjusted (like in 
24208 \family sans
24209 File\SpecialChar menuseparator
24210 Save As
24211 \family default
24212 \SpecialChar ldots
24213 ).
24214  Finally, the document is reloaded using the new name.
24215 \end_layout
24216
24217 \begin_layout Labeling
24218 \labelwidthstring 00.00.0000
24219 CVS
24220 \begin_inset space ~
24221 \end_inset
24222
24223 commands: 
24224 \begin_inset space ~
24225 \end_inset
24226
24227
24228 \begin_inset Newline newline
24229 \end_inset
24230
24231 Rename 
24232 \begin_inset Flex Code
24233 status collapsed
24234
24235 \begin_layout Plain Layout
24236 "<file-name>"
24237 \end_layout
24238
24239 \end_inset
24240
24241  to 
24242 \begin_inset Flex Code
24243 status collapsed
24244
24245 \begin_layout Plain Layout
24246 "<new-file-name>"
24247 \end_layout
24248
24249 \end_inset
24250
24251
24252 \begin_inset Newline newline
24253 \end_inset
24254
24255
24256 \begin_inset Flex Code
24257 status collapsed
24258
24259 \begin_layout Plain Layout
24260 cvs -q add "<new-file-name>"
24261 \end_layout
24262
24263 \end_inset
24264
24265
24266 \begin_inset Newline newline
24267 \end_inset
24268
24269
24270 \begin_inset Flex Code
24271 status collapsed
24272
24273 \begin_layout Plain Layout
24274 cvs -q remove "<file-name>"
24275 \end_layout
24276
24277 \end_inset
24278
24279
24280 \end_layout
24281
24282 \begin_layout Subsubsection
24283 Update of the local directory checkout from repository
24284 \end_layout
24285
24286 \begin_layout Standard
24287 Once your documents gets more complex, containing sub-documents and pictures,
24288  including external 
24289 \begin_inset Flex Code
24290 status collapsed
24291
24292 \begin_layout Plain Layout
24293 .tex
24294 \end_layout
24295
24296 \end_inset
24297
24298  files and so on using version control becomes more complicated.
24299  \SpecialChar LyX
24300  supports updating the whole tree in which resides the document.
24301  This become especially useful once you cooperate with people which neither
24302  have detailed knowledge about CVS usage nor they have ambition to commit
24303  additional material to the repository.
24304  You have to organize the files structure so that all external files are
24305  in the same directory or subdirectories of the document.
24306  It's good practice anyway to store multipart documents in an extra directory.
24307 \end_layout
24308
24309 \begin_layout Standard
24310 The 
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 Update local directory from repository
24316 \end_layout
24317
24318 \end_inset
24319
24320  command updates the whole directory.
24321  If local changes are detected user is warned before update starts.
24322  In case of merge conflicts both versions of the conflicting document parts
24323  are placed in the final document.
24324  You have to review and correct the result of the merge.
24325  You'll find the conflicts enclosed in pairs of 
24326 \begin_inset Flex Code
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 <<<<<<<
24331 \end_layout
24332
24333 \end_inset
24334
24335  and 
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340 >>>>>>>
24341 \end_layout
24342
24343 \end_inset
24344
24345  separated by 
24346 \begin_inset Flex Code
24347 status collapsed
24348
24349 \begin_layout Plain Layout
24350 =======
24351 \end_layout
24352
24353 \end_inset
24354
24355 .
24356  The first part is your version as before the update operation with the
24357  document name prepended.
24358  The second one is the repository version with the version number after
24359  the sequence of 
24360 \begin_inset Flex Code
24361 status collapsed
24362
24363 \begin_layout Plain Layout
24364 >
24365 \end_layout
24366
24367 \end_inset
24368
24369  signs.
24370 \end_layout
24371
24372 \begin_layout Labeling
24373 \labelwidthstring 00.00.0000
24374 CVS
24375 \begin_inset space ~
24376 \end_inset
24377
24378 commands: 
24379 \begin_inset space ~
24380 \end_inset
24381
24382
24383 \begin_inset Newline newline
24384 \end_inset
24385
24386
24387 \begin_inset Flex Code
24388 status collapsed
24389
24390 \begin_layout Plain Layout
24391 cd $path; cvs diff 
24392 \family typewriter
24393 "."
24394 \end_layout
24395
24396 \end_inset
24397
24398  (Ask if changes are detected.)
24399 \begin_inset Newline newline
24400 \end_inset
24401
24402
24403 \begin_inset Flex Code
24404 status collapsed
24405
24406 \begin_layout Plain Layout
24407 cd $path; cvs -q update 
24408 \family typewriter
24409 "."
24410 \end_layout
24411
24412 \end_inset
24413
24414
24415 \end_layout
24416
24417 \begin_layout Standard
24418 where 
24419 \begin_inset Flex Code
24420 status collapsed
24421
24422 \begin_layout Plain Layout
24423 $path
24424 \end_layout
24425
24426 \end_inset
24427
24428  stands for the path to the document.
24429 \end_layout
24430
24431 \begin_layout Subsubsection
24432
24433 \family sans
24434 Show History
24435 \end_layout
24436
24437 \begin_layout Standard
24438 This shows the complete history of the CVS document.
24439  The output of 
24440 \family typewriter
24441 cvs log "<file-name>"
24442 \family default
24443  is shown in a browser.
24444 \end_layout
24445
24446 \begin_layout Subsubsection
24447 Revision info
24448 \end_layout
24449
24450 \begin_layout Standard
24451 \SpecialChar LyX
24452  supports CVS version number, author name, date and time of last commit.
24453  All those are extracted from 
24454 \family typewriter
24455 cvs log -r <file-name>
24456 \family default
24457 .
24458  See 
24459 \begin_inset CommandInset ref
24460 LatexCommand ref
24461 reference "subsec:VCS-Revision-Information"
24462
24463 \end_inset
24464
24465  for details.
24466 \end_layout
24467
24468 \begin_layout Subsection
24469 SVN commands in \SpecialChar LyX
24470
24471 \end_layout
24472
24473 \begin_layout Standard
24474 SVN is now partially supported by \SpecialChar LyX
24475 .
24476  You can find the commands in the 
24477 \family sans
24478 File\SpecialChar menuseparator
24479 Version
24480 \begin_inset space ~
24481 \end_inset
24482
24483 Control
24484 \family default
24485  submenu.
24486  Please note that if you use password protected access to repository via
24487  ssh, you will be asked in terminal window.
24488  \SpecialChar LyX
24489  was tested against SVN 1.5, 1.6, 1.7 and 1.8
24490 \begin_inset Foot
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 Most of the commands will work with 1.4 too, see 
24495 \begin_inset CommandInset ref
24496 LatexCommand ref
24497 reference "subsec:SVN-Repo-Update"
24498
24499 \end_inset
24500
24501 .
24502  There seems to be currently unresolved permissions problem under SVN 1.8
24503  with reverting changes when file is locked.
24504 \end_layout
24505
24506 \end_inset
24507
24508
24509 \end_layout
24510
24511 \begin_layout Subsubsection
24512
24513 \family sans
24514 Register
24515 \end_layout
24516
24517 \begin_layout Standard
24518 If your document is not under revision control, this is the only item shown
24519  in the menu.
24520  And if it is under revision control, the 
24521 \family sans
24522 Register
24523 \family default
24524  item is not visible.
24525 \end_layout
24526
24527 \begin_layout Standard
24528 This command registers in SVN your document ONLY in case you have already
24529  the documents directory under SVN control (in particular 
24530 \family typewriter
24531 .svn/entries
24532 \family default
24533  file exists).
24534  This means you have to checkout the archive by yourself.
24535 \end_layout
24536
24537 \begin_layout Standard
24538 Then you are asked interactively to supply an initial description of the
24539  document.
24540  Don't forget that registered file is not yet commited.
24541 \end_layout
24542
24543 \begin_layout Standard
24544 SVN command that is run: 
24545 \family typewriter
24546 svn add -q 
24547 \begin_inset Quotes qld
24548 \end_inset
24549
24550 <file-name>
24551 \begin_inset Quotes qld
24552 \end_inset
24553
24554
24555 \end_layout
24556
24557 \begin_layout Standard
24558 Read 
24559 \family typewriter
24560 man svn
24561 \family default
24562  to understand the switches.
24563 \end_layout
24564
24565 \begin_layout Subsubsection
24566
24567 \family sans
24568 Check In Changes
24569 \end_layout
24570
24571 \begin_layout Standard
24572 When you are finished editing a file, you commit your changes.
24573  When you do this, you are asked for a description of the changes.
24574  After that changes are commited.
24575 \end_layout
24576
24577 \begin_layout Standard
24578 SVN command:
24579 \begin_inset Foot
24580 status collapsed
24581
24582 \begin_layout Plain Layout
24583 In case locking is not enabled.
24584  See Section 
24585 \begin_inset CommandInset ref
24586 LatexCommand ref
24587 reference "subsec:SVN-File-Locking"
24588
24589 \end_inset
24590
24591 .
24592 \end_layout
24593
24594 \end_inset
24595
24596  
24597 \family typewriter
24598 svn commit -q -m"<description>" <file-name>
24599 \end_layout
24600
24601 \begin_layout Subsubsection
24602
24603 \family sans
24604 Check Out For Edit
24605 \end_layout
24606
24607 \begin_layout Standard
24608 Updates the changes of this file from the repository.
24609  Be sure you understand SVN merging and conflicts resolving before using
24610  this function, because all conflicts has to be resolved manually by you!
24611 \end_layout
24612
24613 \begin_layout Standard
24614 SVN command:
24615 \begin_inset Foot
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 Ditto.
24620 \end_layout
24621
24622 \end_inset
24623
24624  
24625 \family typewriter
24626 svn update --non-interactive 
24627 \begin_inset Quotes qld
24628 \end_inset
24629
24630 <file-name>
24631 \begin_inset Quotes qld
24632 \end_inset
24633
24634
24635 \end_layout
24636
24637 \begin_layout Subsubsection
24638
24639 \family sans
24640 Revert To Repository Version
24641 \end_layout
24642
24643 \begin_layout Standard
24644 This will discard all changes made to the document since the last check
24645  in.
24646  You get a warning before changes are discarded.
24647 \end_layout
24648
24649 \begin_layout Standard
24650 SVN command: 
24651 \family typewriter
24652 svn revert -q 
24653 \begin_inset Quotes qld
24654 \end_inset
24655
24656 <file-name>
24657 \begin_inset Quotes qld
24658 \end_inset
24659
24660
24661 \end_layout
24662
24663 \begin_layout Subsubsection
24664
24665 \family sans
24666 Copy
24667 \end_layout
24668
24669 \begin_layout Standard
24670 This will create a copy of the current document including the version history.
24671  It requires a clean document without any changes since the last checkin.
24672  You are asked for a file name and a description of the copy operation.
24673  After that the copy is created, both locally and in the repository.
24674  If the parent directories of the copied and original document differ, all
24675  relative paths of included files of the copy are adjusted (like in 
24676 \family sans
24677 File\SpecialChar menuseparator
24678 Save As
24679 \family default
24680 \SpecialChar ldots
24681 ).
24682  Finally, the copy is loaded instead of the original document.
24683 \end_layout
24684
24685 \begin_layout Labeling
24686 \labelwidthstring 00.00.0000
24687 SVN
24688 \begin_inset space ~
24689 \end_inset
24690
24691 commands: 
24692 \begin_inset space ~
24693 \end_inset
24694
24695
24696 \begin_inset Newline newline
24697 \end_inset
24698
24699
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 svn copy -q 
24705 \family typewriter
24706
24707 \begin_inset Quotes qld
24708 \end_inset
24709
24710 <file-name>
24711 \begin_inset Quotes qld
24712 \end_inset
24713
24714  
24715 \begin_inset Quotes qld
24716 \end_inset
24717
24718 <new-file-name>
24719 \begin_inset Quotes qld
24720 \end_inset
24721
24722
24723 \end_layout
24724
24725 \end_inset
24726
24727
24728 \begin_inset Newline newline
24729 \end_inset
24730
24731
24732 \begin_inset Flex Code
24733 status collapsed
24734
24735 \begin_layout Plain Layout
24736 svn commit
24737 \end_layout
24738
24739 \end_inset
24740
24741
24742 \end_layout
24743
24744 \begin_layout Subsubsection
24745
24746 \family sans
24747 Rename
24748 \end_layout
24749
24750 \begin_layout Standard
24751 This will rename the current document including the version history.
24752  It requires a clean document without any changes since the last checkin.
24753  You are asked for a file name and a description of the rename operation.
24754  After that the document is renamed, both locally and in the repository.
24755  If the parent directories of the new and old file names differ, all relative
24756  paths of included files are adjusted (like in 
24757 \family sans
24758 File\SpecialChar menuseparator
24759 Save As
24760 \family default
24761 \SpecialChar ldots
24762 ).
24763  Finally, the document is reloaded using the new name.
24764 \end_layout
24765
24766 \begin_layout Labeling
24767 \labelwidthstring 00.00.0000
24768 SVN
24769 \begin_inset space ~
24770 \end_inset
24771
24772 commands: 
24773 \begin_inset space ~
24774 \end_inset
24775
24776
24777 \begin_inset Newline newline
24778 \end_inset
24779
24780
24781 \begin_inset Flex Code
24782 status collapsed
24783
24784 \begin_layout Plain Layout
24785 svn move -q 
24786 \family typewriter
24787
24788 \begin_inset Quotes qld
24789 \end_inset
24790
24791 <file-name>
24792 \begin_inset Quotes qld
24793 \end_inset
24794
24795  
24796 \begin_inset Quotes qld
24797 \end_inset
24798
24799 <new-file-name>
24800 \begin_inset Quotes qld
24801 \end_inset
24802
24803
24804 \end_layout
24805
24806 \end_inset
24807
24808
24809 \begin_inset Newline newline
24810 \end_inset
24811
24812
24813 \begin_inset Flex Code
24814 status collapsed
24815
24816 \begin_layout Plain Layout
24817 svn commit
24818 \end_layout
24819
24820 \end_inset
24821
24822
24823 \end_layout
24824
24825 \begin_layout Subsubsection
24826 \begin_inset CommandInset label
24827 LatexCommand label
24828 name "subsec:SVN-Repo-Update"
24829
24830 \end_inset
24831
24832 Update of the local directory checkout from repository
24833 \begin_inset Foot
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837 Note that this command will work only with subversion 
24838 \begin_inset Formula $\geqq1.5$
24839 \end_inset
24840
24841
24842 \end_layout
24843
24844 \end_inset
24845
24846
24847 \end_layout
24848
24849 \begin_layout Standard
24850 All the commands above have one shortcoming – they deal with the current
24851  document only.
24852  Once your document contains pictures, includes external 
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 .tex
24858 \end_layout
24859
24860 \end_inset
24861
24862  files and so on administration becomes more complicated.
24863  \SpecialChar LyX
24864  now supports updating the whole tree in which resides the document
24865 \begin_inset Foot
24866 status collapsed
24867
24868 \begin_layout Plain Layout
24869 One need to organize the files structure so that all external files are
24870  in the same directory or subdirectories of the document.
24871  
24872 \end_layout
24873
24874 \end_inset
24875
24876 .
24877  This become especially useful once you cooperate with people which neither
24878  know about subversion management nor they have ambition to commit additional
24879  material to the repository.
24880  
24881 \end_layout
24882
24883 \begin_layout Standard
24884 \begin_inset Flex Code
24885 status collapsed
24886
24887 \begin_layout Plain Layout
24888 Update local directory from repository
24889 \end_layout
24890
24891 \end_inset
24892
24893  command updates the whole directory and in case of merge conflicts local
24894  version of the files are left, so no unintended data loss occurs.
24895  If local changes are detected user is warned before update starts.
24896 \end_layout
24897
24898 \begin_layout Labeling
24899 \labelwidthstring 00.00.0000
24900 SVN
24901 \begin_inset space ~
24902 \end_inset
24903
24904 commands: 
24905 \begin_inset space ~
24906 \end_inset
24907
24908
24909 \begin_inset Newline newline
24910 \end_inset
24911
24912
24913 \begin_inset Flex Code
24914 status collapsed
24915
24916 \begin_layout Plain Layout
24917 svn diff $path
24918 \end_layout
24919
24920 \end_inset
24921
24922  (Ask if changes are detected.)
24923 \begin_inset Newline newline
24924 \end_inset
24925
24926
24927 \begin_inset Flex Code
24928 status collapsed
24929
24930 \begin_layout Plain Layout
24931 svn update --accept mine-full $path
24932 \end_layout
24933
24934 \end_inset
24935
24936
24937 \end_layout
24938
24939 \begin_layout Standard
24940 where 
24941 \begin_inset Flex Code
24942 status collapsed
24943
24944 \begin_layout Plain Layout
24945 $path
24946 \end_layout
24947
24948 \end_inset
24949
24950  stands for the path to the document.
24951 \end_layout
24952
24953 \begin_layout Subsubsection
24954
24955 \family sans
24956 Show History
24957 \end_layout
24958
24959 \begin_layout Standard
24960 This shows the complete history of the SVN document.
24961  The output of 
24962 \family typewriter
24963 svn log 
24964 \begin_inset Quotes qld
24965 \end_inset
24966
24967 <file-name>
24968 \begin_inset Quotes qld
24969 \end_inset
24970
24971
24972 \family default
24973  is shown in a browser.
24974 \end_layout
24975
24976 \begin_layout Subsubsection
24977 File Locking
24978 \begin_inset CommandInset label
24979 LatexCommand label
24980 name "subsec:SVN-File-Locking"
24981
24982 \end_inset
24983
24984
24985 \end_layout
24986
24987 \begin_layout Standard
24988 The file exchange through various revision control systems brings the problem
24989  of merge conflicts in case two different users try to edit the same (parts
24990  of) document.
24991  When such a conflict happens it needs manual resolving and one reasonable
24992  alternative is to provide some kind of locking mechanism, which guarantees
24993  that only one user is allowed to edit file at the given time.
24994 \end_layout
24995
24996 \begin_layout Standard
24997 SVN has two such mechanisms to provide mutual exclusivity for file access
24998  – locks and automatic setting of write permissions (see sec.
24999  
25000 \begin_inset CommandInset ref
25001 LatexCommand ref
25002 reference "subsec:Automatical-Locking-Property"
25003
25004 \end_inset
25005
25006 ) based on 
25007 \begin_inset Flex Code
25008 status collapsed
25009
25010 \begin_layout Plain Layout
25011 svn:needs-lock
25012 \end_layout
25013
25014 \end_inset
25015
25016  file svn property
25017 \begin_inset Foot
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021 \begin_inset Flex URL
25022 status open
25023
25024 \begin_layout Plain Layout
25025
25026 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
25027 \end_layout
25028
25029 \end_inset
25030
25031
25032 \end_layout
25033
25034 \end_inset
25035
25036 .
25037  If this property is detected for a given document \SpecialChar LyX
25038  starts to use SVN locks
25039  for document editing automatically and the whole check-in/out mechanism
25040  switches to the same regimen as for RCS.
25041  This in particular means there are two different modes of file use in \SpecialChar LyX
25042 :
25043 \end_layout
25044
25045 \begin_layout Itemize
25046 Unlocked state.
25047  The loaded file is in the read-only mode.
25048  For editing on needs to check-out.
25049  
25050 \emph on
25051 Check-out
25052 \emph default
25053  consists of updating from the repository and gaining write lock.
25054  If the lock is not possible to obtain, we remain in unlocked state.
25055 \end_layout
25056
25057 \begin_layout Itemize
25058 Locked state.
25059  The loaded file is in the 
25060 \begin_inset Quotes els
25061 \end_inset
25062
25063 normal
25064 \begin_inset Quotes ers
25065 \end_inset
25066
25067  edit mode.
25068  No other user is allowed to edit the file.
25069  
25070 \emph on
25071 Check-in
25072 \emph default
25073  consists of commiting changes and releasing write-lock.
25074  If no changes have been made to the document, no commit will be produced
25075 \begin_inset Foot
25076 status collapsed
25077
25078 \begin_layout Plain Layout
25079 Don't be puzzled by the fact that you will be asked for commit message anyway.
25080 \end_layout
25081
25082 \end_inset
25083
25084  and only the write-lock will be released.
25085 \end_layout
25086
25087 \begin_layout Standard
25088 SVN commands:
25089 \end_layout
25090
25091 \begin_layout Labeling
25092 \labelwidthstring 00.00.0000
25093 Check-in:
25094 \family typewriter
25095  svn commit -q -m"<description>" "<file-name>"
25096 \begin_inset Newline newline
25097 \end_inset
25098
25099 svn unlock "<file-name>"
25100 \end_layout
25101
25102 \begin_layout Labeling
25103 \labelwidthstring 00.00.0000
25104 Check-out: 
25105 \family typewriter
25106 svn update "<file-name>"
25107 \begin_inset Newline newline
25108 \end_inset
25109
25110 svn lock "<file-name>"
25111 \end_layout
25112
25113 \begin_layout Subsubsection
25114
25115 \family typewriter
25116 \begin_inset CommandInset label
25117 LatexCommand label
25118 name "subsec:Automatical-Locking-Property"
25119
25120 \end_inset
25121
25122
25123 \family default
25124 Automatic Locking Property
25125 \end_layout
25126
25127 \begin_layout Standard
25128 The above mentioned automatic setting of write permissions of the .lyx file
25129  can be set through
25130 \family sans
25131  File\SpecialChar menuseparator
25132 Version
25133 \begin_inset space ~
25134 \end_inset
25135
25136 Control\SpecialChar menuseparator
25137 Use Locking Property
25138 \family default
25139 .
25140  This command is active only when the file is not locked on the svn server
25141  (i.e.
25142  you need to check-out before proceeding).
25143 \end_layout
25144
25145 \begin_layout Labeling
25146 \labelwidthstring 00.00.0000
25147 SVN
25148 \begin_inset space ~
25149 \end_inset
25150
25151 commands:
25152 \end_layout
25153
25154 \begin_layout Labeling
25155 \labelwidthstring 00.00.0000
25156 Set:
25157 \family typewriter
25158  svn propset svn:needs-lock ON "<file-name>"
25159 \end_layout
25160
25161 \begin_layout Labeling
25162 \labelwidthstring 00.00.0000
25163 Unset: 
25164 \family typewriter
25165 svn propdel svn:needs-lock "<file-name>"
25166 \end_layout
25167
25168 \begin_layout Subsubsection
25169 \begin_inset CommandInset label
25170 LatexCommand label
25171 name "subsec:VCS-Revision-Information"
25172
25173 \end_inset
25174
25175 Revision Information in Documents
25176 \end_layout
25177
25178 \begin_layout Standard
25179 There are more possibilities how to activate revision information in our
25180  document.
25181 \end_layout
25182
25183 \begin_layout Itemize
25184 \SpecialChar LyX
25185  supports directly:
25186 \end_layout
25187
25188 \begin_deeper
25189 \begin_layout Itemize
25190 tree revision information (
25191 \begin_inset Flex Code
25192 status collapsed
25193
25194 \begin_layout Plain Layout
25195 vcs-tree-revision
25196 \end_layout
25197
25198 \end_inset
25199
25200 ).
25201  The result is the output of the 
25202 \begin_inset Flex Code
25203 status collapsed
25204
25205 \begin_layout Plain Layout
25206 svnversion
25207 \end_layout
25208
25209 \end_inset
25210
25211  command, the following table gives you an idea, how to read the results.
25212 \end_layout
25213
25214 \begin_layout Standard
25215 \align center
25216 \begin_inset Tabular
25217 <lyxtabular version="3" rows="6" columns="2">
25218 <features tabularvalignment="middle">
25219 <column alignment="left" valignment="top">
25220 <column alignment="left" valignment="top">
25221 <row>
25222 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25223 \begin_inset Text
25224
25225 \begin_layout Plain Layout
25226
25227 \series bold
25228 Output
25229 \end_layout
25230
25231 \end_inset
25232 </cell>
25233 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25234 \begin_inset Text
25235
25236 \begin_layout Plain Layout
25237
25238 \series bold
25239 Meaning
25240 \end_layout
25241
25242 \end_inset
25243 </cell>
25244 </row>
25245 <row>
25246 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
25247 \begin_inset Text
25248
25249 \begin_layout Plain Layout
25250 4123:4168
25251 \end_layout
25252
25253 \end_inset
25254 </cell>
25255 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25256 \begin_inset Text
25257
25258 \begin_layout Plain Layout
25259 mixed revision working copy
25260 \end_layout
25261
25262 \end_inset
25263 </cell>
25264 </row>
25265 <row>
25266 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
25267 \begin_inset Text
25268
25269 \begin_layout Plain Layout
25270 4168M
25271 \end_layout
25272
25273 \end_inset
25274 </cell>
25275 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25276 \begin_inset Text
25277
25278 \begin_layout Plain Layout
25279 modified working copy
25280 \end_layout
25281
25282 \end_inset
25283 </cell>
25284 </row>
25285 <row>
25286 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
25287 \begin_inset Text
25288
25289 \begin_layout Plain Layout
25290 4123S
25291 \end_layout
25292
25293 \end_inset
25294 </cell>
25295 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25296 \begin_inset Text
25297
25298 \begin_layout Plain Layout
25299 switched working copy
25300 \end_layout
25301
25302 \end_inset
25303 </cell>
25304 </row>
25305 <row>
25306 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
25307 \begin_inset Text
25308
25309 \begin_layout Plain Layout
25310 4123P
25311 \end_layout
25312
25313 \end_inset
25314 </cell>
25315 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25316 \begin_inset Text
25317
25318 \begin_layout Plain Layout
25319 partial working copy, from a sparse checkout
25320 \end_layout
25321
25322 \end_inset
25323 </cell>
25324 </row>
25325 <row>
25326 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25327 \begin_inset Text
25328
25329 \begin_layout Plain Layout
25330 4123:4168MS
25331 \end_layout
25332
25333 \end_inset
25334 </cell>
25335 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25336 \begin_inset Text
25337
25338 \begin_layout Plain Layout
25339 mixed revision, modified, switched working copy
25340 \end_layout
25341
25342 \end_inset
25343 </cell>
25344 </row>
25345 </lyxtabular>
25346
25347 \end_inset
25348
25349
25350 \end_layout
25351
25352 \begin_layout Itemize
25353 file revision information.
25354  The result comes from parsing the output of 
25355 \begin_inset Flex Code
25356 status collapsed
25357
25358 \begin_layout Plain Layout
25359 svn
25360 \begin_inset space ~
25361 \end_inset
25362
25363 info
25364 \begin_inset space ~
25365 \end_inset
25366
25367 --xml
25368 \begin_inset space ~
25369 \end_inset
25370
25371 file.lyx
25372 \end_layout
25373
25374 \end_inset
25375
25376 .
25377  Supported flags are:
25378 \end_layout
25379
25380 \begin_deeper
25381 \begin_layout Itemize
25382 version number of the last commit (
25383 \begin_inset Flex Code
25384 status collapsed
25385
25386 \begin_layout Plain Layout
25387 vcs-revision
25388 \end_layout
25389
25390 \end_inset
25391
25392 )
25393 \end_layout
25394
25395 \begin_layout Itemize
25396 author of the last commit (
25397 \begin_inset Flex Code
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401 vcs-author
25402 \end_layout
25403
25404 \end_inset
25405
25406 )
25407 \end_layout
25408
25409 \begin_layout Itemize
25410 date of the last commit (
25411 \begin_inset Flex Code
25412 status collapsed
25413
25414 \begin_layout Plain Layout
25415 vcs-date
25416 \end_layout
25417
25418 \end_inset
25419
25420 )
25421 \end_layout
25422
25423 \begin_layout Itemize
25424 time of the last commit (
25425 \begin_inset Flex Code
25426 status collapsed
25427
25428 \begin_layout Plain Layout
25429 vcs-time
25430 \end_layout
25431
25432 \end_inset
25433
25434 )
25435 \end_layout
25436
25437 \end_deeper
25438 \begin_layout Standard
25439 You can obtain this info via InsetInfo (
25440 \change_inserted 5863208 1564400022
25441
25442 \lang american
25443 Insert\SpecialChar menuseparator
25444 Field\SpecialChar menuseparator
25445 Version Control Revision
25446 \change_deleted 5863208 1564399852
25447
25448 \lang english
25449 e.g.
25450  
25451 \begin_inset Flex Code
25452 status collapsed
25453
25454 \begin_layout Plain Layout
25455 info-insert buffer vcs-date
25456 \end_layout
25457
25458 \end_inset
25459
25460
25461 \change_unchanged
25462 ).
25463  The information will be available only when you have the file stored under
25464  svn managment (i.e.
25465  the 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 .svn
25471 \end_layout
25472
25473 \end_inset
25474
25475  directory is available with your document).
25476 \end_layout
25477
25478 \end_deeper
25479 \begin_layout Itemize
25480 Another—a hacking one—possibility is to use svn keywords
25481 \begin_inset Foot
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
25486 \end_layout
25487
25488 \end_inset
25489
25490 .
25491  In short – you set file keywords property (e.g.
25492  
25493 \family sans
25494 svn propset svn:keywords 'Rev' file.lyx
25495 \family default
25496 ) and then paste keyword \SpecialChar TeX
25497  code
25498 \begin_inset Foot
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 This is an easy way how to ensure that \SpecialChar LyX
25503  won't break the line in the middle
25504  of keyword tag.
25505 \end_layout
25506
25507 \end_inset
25508
25509  tag in your document (e.g.
25510  
25511 \begin_inset Flex Code
25512 status collapsed
25513
25514 \begin_layout Plain Layout
25515 $Rev$
25516 \end_layout
25517
25518 \end_inset
25519
25520 ).
25521  This way svn client will automatically substitute revision number (e.g.
25522  
25523 \begin_inset Flex Code
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 $Rev: 59 $
25528 \end_layout
25529
25530 \end_inset
25531
25532 ) after each update and commit.
25533  There are more problems with this approach.
25534  Firstly, the '$' character is used in \SpecialChar TeX
25535  world for math equations, so any
25536  occurence of math formula 
25537 \begin_inset Formula $Rev$
25538 \end_inset
25539
25540  become 
25541 \begin_inset Formula $Rev:59$
25542 \end_inset
25543
25544  in your \SpecialChar LyX
25545  document.
25546  Similarly for other keywords like Id, Date, Author, etc.
25547  Secondly svn output is dependent on your locales, so its very easy that
25548  svn would produce some problematic strings once Date is used.
25549  Thirdly you get the whole 'Rev: 59' string in your document instead of
25550  the plain number.
25551  Until subversion implements user's custom keywords it will be hard to use
25552  this approach reliably or let \SpecialChar LyX
25553  to support it directly.
25554 \end_layout
25555
25556 \begin_layout Subsection
25557 SVN and Windows Environment
25558 \end_layout
25559
25560 \begin_layout Quote
25561 My inclination is to say that if the user cannot figure out the command
25562  line operations on their own fairly quickly, they would be well advised
25563  to use TortoiseSVN.
25564  —P.
25565  A.
25566  Rubin
25567 \end_layout
25568
25569 \begin_layout Subsubsection
25570 Preparation
25571 \end_layout
25572
25573 \begin_layout Standard
25574 In addition to installing \SpecialChar LyX
25575 , and having access to a Subversion repository,
25576  the user will need to install the Subversion client program.
25577  A Windows installer for the client program is available from 
25578 \begin_inset CommandInset href
25579 LatexCommand href
25580 name "CollabNet"
25581 target "http://www.collab.net/nonav/downloads/subversion/"
25582 literal "false"
25583
25584 \end_inset
25585
25586 .
25587  The user may also want to install 
25588 \begin_inset CommandInset href
25589 LatexCommand href
25590 name "TortoiseSVN"
25591 target "http://tortoisesvn.tigris.org/"
25592 literal "false"
25593
25594 \end_inset
25595
25596 , which integrates Subversion operations into the context (rightclick) menu
25597  of Windows Explorer.
25598  Operations done outside \SpecialChar LyX
25599  will typically be more convenient using the Explorer
25600  context menu.
25601  Note that TortoiseSVN is not a replacement for the client program, which
25602  is what \SpecialChar LyX
25603  itself will use.
25604 \end_layout
25605
25606 \begin_layout Subsubsection
25607 Bringing a document under Subversion control
25608 \end_layout
25609
25610 \begin_layout Standard
25611 Before a \SpecialChar LyX
25612  document can be brought under version control in Subversion, its
25613  parent directory needs to be under version control.
25614  If the document is being added to a project already in the repository,
25615  this is accomplished by checking the project out to the directory where
25616  the new document will be placed.
25617  If the project itself is not yet under version control (for instance, if
25618  this document starts a new project), the directory must be imported into
25619  the repository.
25620  This is done outside \SpecialChar LyX
25621 .
25622  Both import and checkout are easily accomplished from the Explorer context
25623  menu using TortoiseSVN, or alternatively can be done using the command
25624  line client at a DOS prompt.
25625  The procedure for importing the project using TortoiseSVN is described
25626  below, assuming an existing repository and a new project being started
25627  in 
25628 \family typewriter
25629 C:
25630 \backslash
25631 new project
25632 \family default
25633 .
25634  For information on using the Subversion client program, run 
25635 \family typewriter
25636 svn --help 
25637 \family default
25638 in a DOS shell.
25639 \end_layout
25640
25641 \begin_layout Enumerate
25642 Locate 
25643 \family typewriter
25644 C:
25645 \backslash
25646 new project 
25647 \family default
25648 in Windows Explorer, right click it, and select 
25649 \family sans
25650 TortoiseSVN\SpecialChar menuseparator
25651 Repo-browser
25652 \family default
25653 .
25654  If necessary, adjust the URL for the repository, then click OK.
25655 \end_layout
25656
25657 \begin_layout Enumerate
25658 Right click the level of the repository under which you want to place the
25659  new project folder (typically the top level) and click 
25660 \family sans
25661 Create folder
25662 \family default
25663  Supply a name for the project folder and click OK.
25664  Add a message for the log file if desired, then click OK again.
25665  The new project folder should appear in the repository.
25666  Finally, click OK again to exit the repository browser.
25667 \end_layout
25668
25669 \begin_layout Enumerate
25670 Once again right click 
25671 \family typewriter
25672 C:
25673 \backslash
25674 new project
25675 \family default
25676 , this time selecting SVN Checkout\SpecialChar ldots
25677  Select the URL of the project folder
25678  you just created in the repository, and set the checkout directory to 
25679 \family typewriter
25680 C:
25681 \backslash
25682 new project.
25683
25684 \family default
25685  Click OK.
25686  You will be warned about a non-empty folder; click OK to proceed.
25687  You should now have a 
25688 \family typewriter
25689 .svn
25690 \family default
25691  directory under 
25692 \family typewriter
25693 C:
25694 \backslash
25695 new project.
25696 \end_layout
25697
25698 \begin_layout Enumerate
25699 Create or open your document in \SpecialChar LyX
25700  and click 
25701 \family sans
25702 File\SpecialChar menuseparator
25703 Version
25704 \begin_inset space ~
25705 \end_inset
25706
25707 Control\SpecialChar menuseparator
25708 Register.
25709  
25710 \family default
25711 Add a log message and click OK to commit the document to version control.
25712 \end_layout
25713
25714 \begin_layout Standard
25715 From this point onward, you should have full functionality in the 
25716 \family sans
25717 File\SpecialChar menuseparator
25718 Version
25719 \begin_inset space ~
25720 \end_inset
25721
25722 Control
25723 \family default
25724  menu.
25725  You also have the option of checking the document in and out, viewing its
25726  history, etc.
25727  using the TortoiseSVN context menu in Windows Explorer or the Subversion
25728  client program from a command prompt.
25729 \end_layout
25730
25731 \begin_layout Subsubsection
25732 SSH tunnel used with SVN under Windows
25733 \end_layout
25734
25735 \begin_layout Standard
25736 Compared with Linux setting up an svn client to communicate over ssh under
25737  Windows is a rather troublesome task.
25738  We will at least offer some hints how to setup the client side but prior
25739  knowledge about ssh and the Windows command line is needed, also be prepared
25740  for a great deal of frustration\SpecialChar ldots
25741
25742 \end_layout
25743
25744 \begin_layout Enumerate
25745 Get an svn client for windows, as described in the previous sections.
25746  When it is a fresh install run some svn command (e.g.
25747  
25748 \begin_inset Flex Code
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 svn --version
25753 \end_layout
25754
25755 \end_inset
25756
25757 ) to create config files, which you will need to change later on.
25758 \end_layout
25759
25760 \begin_layout Enumerate
25761 Choose an ssh client for Windows.
25762  There are several possibilities, we will use the one from Putty tools
25763 \begin_inset Foot
25764 status collapsed
25765
25766 \begin_layout Plain Layout
25767 \begin_inset Flex URL
25768 status collapsed
25769
25770 \begin_layout Plain Layout
25771
25772 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
25773 \end_layout
25774
25775 \end_inset
25776
25777
25778 \end_layout
25779
25780 \end_inset
25781
25782 .
25783  You will need to set the connection up so that the client doesn't ask for
25784  any password from you.
25785  To keep things easy we will use only keys without any additional password
25786  protection etc.
25787 \end_layout
25788
25789 \begin_deeper
25790 \begin_layout Enumerate
25791 Generate keys by 
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 puttygen
25797 \end_layout
25798
25799 \end_inset
25800
25801 .
25802  Save your private .ppk key file and put the public one on the server side.
25803  If the SVN server runs on Linux, note that the format of the public key
25804  is not compatible with Linux openssh and you will need to direcly copy-paste
25805  the key from the 
25806 \begin_inset Quotes eld
25807 \end_inset
25808
25809
25810 \emph on
25811 Public key for pasting into OpenSSH authorized_keys file
25812 \emph default
25813 :
25814 \begin_inset Quotes erd
25815 \end_inset
25816
25817  edit field into the server's 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 ~/.ssh/authorized_keys
25823 \end_layout
25824
25825 \end_inset
25826
25827  / 
25828 \begin_inset Flex Code
25829 status collapsed
25830
25831 \begin_layout Plain Layout
25832 authorized_keys2
25833 \end_layout
25834
25835 \end_inset
25836
25837  file.
25838 \end_layout
25839
25840 \begin_layout Enumerate
25841 Get the Putty's 
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 plink
25847 \end_layout
25848
25849 \end_inset
25850
25851 .
25852  In the SVN config file
25853 \begin_inset Foot
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 Exact path depends on Windows version, usually somewhere around 
25858 \begin_inset Flex Code
25859 status collapsed
25860
25861 \begin_layout Plain Layout
25862 c:
25863 \backslash
25864 Documents and Settings
25865 \backslash
25866 user
25867 \backslash
25868 Application Data
25869 \backslash
25870 Subversion
25871 \backslash
25872 config
25873 \end_layout
25874
25875 \end_inset
25876
25877  / 
25878 \begin_inset Flex Code
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 AppData
25883 \backslash
25884 Roaming
25885 \backslash
25886 Subversion
25887 \end_layout
25888
25889 \end_inset
25890
25891 .
25892 \end_layout
25893
25894 \end_inset
25895
25896 , section [tunnels], setup ssh command, e.g.
25897  
25898 \begin_inset Flex Code
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
25903 \end_layout
25904
25905 \end_inset
25906
25907 .
25908 \begin_inset Foot
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 It will usually take a lot of time to get exact command right and it depends
25913  on many things.
25914  For example do not have some remote server saved as a default session in
25915  Putty etc.
25916  If things fail, try to connect via plink without SVN first.
25917 \end_layout
25918
25919 \end_inset
25920
25921
25922 \end_layout
25923
25924 \end_deeper
25925 \begin_layout Enumerate
25926 Checkout the SVN archive, e.
25927 \begin_inset space \thinspace{}
25928 \end_inset
25929
25930 g.
25931 \begin_inset Newline newline
25932 \end_inset
25933
25934
25935 \begin_inset Flex Code
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 svn co svn+ssh://user@server/repository_path
25940 \end_layout
25941
25942 \end_inset
25943
25944 .
25945 \end_layout
25946
25947 \begin_layout Subsubsection
25948 End-of-Line Conversions
25949 \end_layout
25950
25951 \begin_layout Standard
25952 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
25953  will
25954  use different line endings inside the .lyx files.
25955  This is not a problem as far as \SpecialChar LyX
25956  functionality is concerned, but the commit
25957  diffs will be huge and merge-conflicts prone.
25958  Fortunately SVN itself knows
25959 \begin_inset Foot
25960 status collapsed
25961
25962 \begin_layout Plain Layout
25963 \begin_inset Flex URL
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967
25968 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
25969 \end_layout
25970
25971 \end_inset
25972
25973
25974 \end_layout
25975
25976 \end_inset
25977
25978  how to deal with CR/LF problems when switching .lyx files to the 
25979 \begin_inset Flex Code
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983 native
25984 \end_layout
25985
25986 \end_inset
25987
25988  mode.
25989 \begin_inset Foot
25990 status collapsed
25991
25992 \begin_layout Plain Layout
25993 For the lazy guys: 
25994 \begin_inset Flex Code
25995 status collapsed
25996
25997 \begin_layout Plain Layout
25998 svn propset svn:eol-style native FILE_NAME
25999 \end_layout
26000
26001 \end_inset
26002
26003
26004 \end_layout
26005
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \begin_layout Subsection
26012 GIT commands in \SpecialChar LyX
26013
26014 \end_layout
26015
26016 \begin_layout Standard
26017 A minimal subset of GIT commands is now supported by \SpecialChar LyX
26018 .
26019  You can find the commands in the 
26020 \family sans
26021 File\SpecialChar menuseparator
26022 Version
26023 \begin_inset space ~
26024 \end_inset
26025
26026 Control
26027 \family default
26028  submenu.
26029  Please note that if you use password protected access to repository via
26030  ssh, you will be asked in terminal window.
26031  \SpecialChar LyX
26032  was tested against GIT 1.7.
26033 \begin_inset Foot
26034 status collapsed
26035
26036 \begin_layout Plain Layout
26037 Windows users please note that you need to ensure that git is on the path.
26038  This can be set from within \SpecialChar LyX
26039  at 
26040 \family sans
26041 Tools\SpecialChar menuseparator
26042 Preferences\SpecialChar menuseparator
26043 Paths\SpecialChar menuseparator
26044 PATH prefix
26045 \family default
26046 .
26047 \end_layout
26048
26049 \end_inset
26050
26051
26052 \end_layout
26053
26054 \begin_layout Standard
26055 One big difference of GIT and the other supported version control systems
26056  is the distributed nature of GIT: With traditional version control systems
26057  there is one central server which hosts the repository.
26058  Users commit their changes to the server, and get updates made by other
26059  users from it.
26060  With GIT, users commit to a local repository.
26061  The local repository can be synchronized with one or more remote repositories
26062  using the 
26063 \begin_inset Flex Code
26064 status collapsed
26065
26066 \begin_layout Plain Layout
26067 pull
26068 \end_layout
26069
26070 \end_inset
26071
26072  and 
26073 \begin_inset Flex Code
26074 status collapsed
26075
26076 \begin_layout Plain Layout
26077 push
26078 \end_layout
26079
26080 \end_inset
26081
26082  GIT commands.
26083  \SpecialChar LyX
26084  does not interact in any way with remote GIT repositories.
26085  It works exclusively with the local repository in a very similar way as
26086  with a central CVS or SVN repository.
26087  If you use remote GIT repositories you need to do the 
26088 \begin_inset Flex Code
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092 pull
26093 \end_layout
26094
26095 \end_inset
26096
26097  and 
26098 \begin_inset Flex Code
26099 status collapsed
26100
26101 \begin_layout Plain Layout
26102 push
26103 \end_layout
26104
26105 \end_inset
26106
26107  operations with your favourite GIT client.
26108 \end_layout
26109
26110 \begin_layout Subsubsection
26111
26112 \family sans
26113 Register
26114 \end_layout
26115
26116 \begin_layout Standard
26117 If your document is not under revision control, this is the only item shown
26118  in the menu.
26119  And if it is under revision control, the 
26120 \family sans
26121 Register
26122 \family default
26123  item is not visible.
26124 \end_layout
26125
26126 \begin_layout Standard
26127 This command registers in GIT your document ONLY in case you have already
26128  the documents directory under GIT control (in particular 
26129 \family typewriter
26130 .git/index
26131 \family default
26132  file exists).
26133  This means you have to checkout the archive by yourself.
26134 \end_layout
26135
26136 \begin_layout Standard
26137 Then you are asked interactively to supply an initial description of the
26138  document.
26139  Don't forget that registered file is not yet committed.
26140 \end_layout
26141
26142 \begin_layout Standard
26143 GIT command that is run: 
26144 \family typewriter
26145 git add 
26146 \begin_inset Quotes qld
26147 \end_inset
26148
26149 <file-name>
26150 \begin_inset Quotes qld
26151 \end_inset
26152
26153
26154 \end_layout
26155
26156 \begin_layout Standard
26157 Read 
26158 \family typewriter
26159 man git
26160 \family default
26161  to understand the switches.
26162 \end_layout
26163
26164 \begin_layout Subsubsection
26165
26166 \family sans
26167 Check In Changes
26168 \end_layout
26169
26170 \begin_layout Standard
26171 When you are finished editing a file, you commit your changes.
26172  When you do this, you are asked for a description of the changes.
26173  After that changes are committed.
26174 \end_layout
26175
26176 \begin_layout Standard
26177 GIT command: 
26178 \family typewriter
26179 git commit -q -m"<description>" <file-name>
26180 \end_layout
26181
26182 \begin_layout Subsubsection
26183
26184 \family sans
26185 Revert To Repository Version
26186 \end_layout
26187
26188 \begin_layout Standard
26189 This will discard all changes made to the document since the last check
26190  in.
26191  You get a warning before changes are discarded.
26192 \end_layout
26193
26194 \begin_layout Standard
26195 GIT command: 
26196 \family typewriter
26197 git checkout -q 
26198 \begin_inset Quotes qld
26199 \end_inset
26200
26201 <file-name>
26202 \begin_inset Quotes qld
26203 \end_inset
26204
26205
26206 \end_layout
26207
26208 \begin_layout Subsubsection
26209
26210 \family sans
26211 Rename
26212 \end_layout
26213
26214 \begin_layout Standard
26215 This will rename the current document including the version history.
26216  It requires a clean document without any changes since the last checkin.
26217  You are asked for a file name and a description of the rename operation.
26218  After that the document is renamed, both locally and in the repository.
26219  If the parent directories of the new and old file names differ, all relative
26220  paths of included files are adjusted (like in 
26221 \family sans
26222 File\SpecialChar menuseparator
26223 Save As
26224 \family default
26225 \SpecialChar ldots
26226 ).
26227  Finally, the document is reloaded using the new name.
26228 \end_layout
26229
26230 \begin_layout Labeling
26231 \labelwidthstring 00.00.0000
26232 GIT
26233 \begin_inset space ~
26234 \end_inset
26235
26236 commands: 
26237 \begin_inset space ~
26238 \end_inset
26239
26240
26241 \begin_inset Newline newline
26242 \end_inset
26243
26244
26245 \begin_inset Flex Code
26246 status collapsed
26247
26248 \begin_layout Plain Layout
26249 git mv 
26250 \family typewriter
26251
26252 \begin_inset Quotes qld
26253 \end_inset
26254
26255 <file-name>
26256 \begin_inset Quotes qld
26257 \end_inset
26258
26259  
26260 \begin_inset Quotes qld
26261 \end_inset
26262
26263 <new-file-name>
26264 \begin_inset Quotes qld
26265 \end_inset
26266
26267
26268 \end_layout
26269
26270 \end_inset
26271
26272
26273 \begin_inset Newline newline
26274 \end_inset
26275
26276
26277 \begin_inset Flex Code
26278 status collapsed
26279
26280 \begin_layout Plain Layout
26281 git commit
26282 \end_layout
26283
26284 \end_inset
26285
26286
26287 \end_layout
26288
26289 \begin_layout Subsubsection
26290
26291 \family sans
26292 Show History
26293 \end_layout
26294
26295 \begin_layout Standard
26296 This shows the complete history of the GIT document.
26297  The output of 
26298 \family typewriter
26299 git log 
26300 \begin_inset Quotes qld
26301 \end_inset
26302
26303 <file-name>
26304 \begin_inset Quotes qld
26305 \end_inset
26306
26307
26308 \family default
26309  is shown in a browser.
26310 \end_layout
26311
26312 \begin_layout Subsubsection
26313 Version Info
26314 \end_layout
26315
26316 \begin_layout Standard
26317 \SpecialChar LyX
26318  supports GIT hash number of the last commit to the file, 
26319 \change_inserted 1119979965 1564297456
26320 its abbreviated form, 
26321 \change_unchanged
26322 author name, date and time of last commit.
26323  All those are extracted from 
26324 \family typewriter
26325 git log -n 1 --pretty=format:%H%n
26326 \change_inserted 1119979965 1564297427
26327 %h%n
26328 \change_unchanged
26329 %an%n%ai
26330 \family default
26331 .
26332  Tree version information is obtained via 
26333 \family typewriter
26334 git describe --abbrev --dirty --long
26335 \family default
26336 .
26337  See 
26338 \begin_inset CommandInset ref
26339 LatexCommand ref
26340 reference "subsec:VCS-Revision-Information"
26341
26342 \end_inset
26343
26344  for other details.
26345 \end_layout
26346
26347 \begin_layout Subsection
26348 Further tuning
26349 \end_layout
26350
26351 \begin_layout Standard
26352 With the recent addition of the 
26353 \begin_inset Flex Code
26354 status collapsed
26355
26356 \begin_layout Plain Layout
26357 vc-command
26358 \end_layout
26359
26360 \end_inset
26361
26362  function \SpecialChar LyX
26363  power users are allowed to create their own commands for revision
26364  control.
26365 \end_layout
26366
26367 \begin_layout Standard
26368 As an example you can see how two TortoiseSVN commands could be integrated
26369  directly:
26370 \end_layout
26371
26372 \begin_layout Description
26373 Commit: 
26374 \begin_inset Flex Code
26375 status collapsed
26376
26377 \begin_layout Plain Layout
26378 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
26379 \end_layout
26380
26381 \end_inset
26382
26383
26384 \end_layout
26385
26386 \begin_layout Description
26387 Revert: 
26388 \begin_inset Flex Code
26389 status collapsed
26390
26391 \begin_layout Plain Layout
26392 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
26393 \end_layout
26394
26395 \end_inset
26396
26397
26398 \end_layout
26399
26400 \begin_layout Subsection
26401 Version control and Document comparison
26402 \end_layout
26403
26404 \begin_layout Standard
26405 One of the typical uses of version control is to inspect the changes between
26406  revisions, usually by creating 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 diff
26412 \end_layout
26413
26414 \end_inset
26415
26416  dumps.
26417  While this is useful for plain text files, it is much less useful in the
26418  case of \SpecialChar LyX
26419  files, which have more a complicated structure.
26420  Hence we provide binding to the Document comparison feature.
26421  There are two ways of calling this feature – either by direct call of 
26422 \begin_inset Flex Code
26423 status collapsed
26424
26425 \begin_layout Plain Layout
26426 vc-compare
26427 \end_layout
26428
26429 \end_inset
26430
26431  \SpecialChar LyX
26432  function (for details see \SpecialChar LyX
26433  functions manual) or by the toolbar icon 
26434 \begin_inset Info
26435 type  "icon"
26436 arg   "vc-compare"
26437 \end_inset
26438
26439  or the menu item 
26440 \begin_inset Info
26441 type  "menu"
26442 arg   "vc-compare"
26443 \end_inset
26444
26445 , respectively.
26446  One can either compare two chosen revisions of the document or he can simply
26447  compare the current version of edited text with older revisions (where
26448  '
26449 \begin_inset Flex Noun
26450 status collapsed
26451
26452 \begin_layout Plain Layout
26453 0
26454 \end_layout
26455
26456 \end_inset
26457
26458 ' revisions back means comparison of the edited file with last commited
26459  revision).
26460  
26461 \end_layout
26462
26463 \begin_layout Standard
26464 This feature is supported for SVN and RCS though due to the more complicated
26465  versioning scheme of RCS there is a constraint – when addressing the revisions
26466  in dialog, numbers always point to the last number in RCS revision number,
26467  i.e.
26468  '35' in '1.2.35'.
26469  We don't currently support GIT addressing of revisions, one can just compare
26470  edited document with its revision X steps backs, where X is addressed as
26471  
26472 \begin_inset Flex Code
26473 status collapsed
26474
26475 \begin_layout Plain Layout
26476 HEAD~X
26477 \end_layout
26478
26479 \end_inset
26480
26481 .
26482 \end_layout
26483
26484 \begin_layout Section
26485 Literate Programming
26486 \end_layout
26487
26488 \begin_layout Standard
26489 Updated by 
26490 \noun on
26491 Kayvan Sylvan 
26492 \noun default
26493 (kayvan@sylvan.com)
26494 \noun on
26495
26496 \noun default
26497 original documentation written by 
26498 \noun on
26499 Edmar Wienskoski Jr.
26500
26501 \noun default
26502  (edmar-w-jr@technologist.com)
26503 \end_layout
26504
26505 \begin_layout Subsection
26506 Introduction
26507 \end_layout
26508
26509 \begin_layout Standard
26510 The main purpose of this documentation is to show you how to use \SpecialChar LyX
26511  for literate
26512  programming, where it is assumed that you are familiar with this programming
26513  technique, and know what 
26514 \begin_inset Quotes eld
26515 \end_inset
26516
26517 tangling
26518 \begin_inset Quotes erd
26519 \end_inset
26520
26521  and 
26522 \begin_inset Quotes eld
26523 \end_inset
26524
26525 weaving
26526 \begin_inset Quotes erd
26527 \end_inset
26528
26529  means.
26530  If that is not the case, please follow the web links provided in the following
26531  sections.
26532  There is a lot of good documentation out there covering old development
26533  history to the latest tools tips.
26534 \end_layout
26535
26536 \begin_layout Standard
26537 It is also assumed that you are familiar with \SpecialChar LyX
26538  itself to a point that you
26539  are comfortable changing your \SpecialChar LyX
26540  preferences, and X resources file.
26541  If that is not the case please refer to other \SpecialChar LyX
26542  documentation to cover your
26543  specific needs.
26544 \end_layout
26545
26546 \begin_layout Subsection
26547 Literate Programming
26548 \end_layout
26549
26550 \begin_layout Standard
26551 From the Literate Programming FAQ: 
26552 \end_layout
26553
26554 \begin_layout Quotation
26555 Literate programming is the combination of documentation and source together
26556  in a fashion suited for reading by human beings.
26557  In fact, literate programs should be enjoyable reading, even inviting!
26558  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
26559  and documentation in a single file.
26560  Literate programming tools then parse the file to produce either readable
26561  documentation or compilable source.
26562  The WEB style of literate programming was created by D.
26563 \begin_inset space \thinspace{}
26564 \end_inset
26565
26566 E.
26567  Knuth during the development of his \SpecialChar TeX
26568  typesetting software.
26569  
26570 \end_layout
26571
26572 \begin_layout Standard
26573 Another excerpt says:
26574 \end_layout
26575
26576 \begin_layout Quotation
26577
26578 \emph on
26579 How is literate programming different from verbose commenting?
26580 \end_layout
26581
26582 \begin_layout Quotation
26583 There are three distinguishing characteristics.
26584  In order of importance, they are: 
26585 \end_layout
26586
26587 \begin_deeper
26588 \begin_layout Itemize
26589 flexible order of elaboration 
26590 \end_layout
26591
26592 \begin_layout Itemize
26593 automatic support for browsing 
26594 \end_layout
26595
26596 \begin_layout Itemize
26597 typeset documentation, especially diagrams and mathematics 
26598 \end_layout
26599
26600 \end_deeper
26601 \begin_layout Standard
26602 Now that I sparked your curiosity, take a look in the references.
26603 \end_layout
26604
26605 \begin_layout Subsubsection
26606 References
26607 \end_layout
26608
26609 \begin_layout Standard
26610 The complete Literate Programming FAQ can be found at:
26611 \end_layout
26612
26613 \begin_layout Quote
26614 Literate Programming FAQ 
26615 \begin_inset Flex URL
26616 status open
26617
26618 \begin_layout Plain Layout
26619
26620 http://www.literateprogramming.com/lpfaq.pdf
26621 \end_layout
26622
26623 \end_inset
26624
26625
26626 \end_layout
26627
26628 \begin_layout Standard
26629 The FAQ lists 23 (twenty three!) different literate programming tools.
26630  Where some are specialized or 
26631 \begin_inset Quotes eld
26632 \end_inset
26633
26634 tailored
26635 \begin_inset Quotes erd
26636 \end_inset
26637
26638  for particular programming languages, while other have general scope.
26639  I selected 
26640 \noun on
26641 Noweb
26642 \noun default
26643  for my own use for several reasons:
26644 \end_layout
26645
26646 \begin_layout Itemize
26647 It can generate the documentation either in \SpecialChar LaTeX
26648  or HTML.
26649 \end_layout
26650
26651 \begin_layout Itemize
26652 It has a open architecture, i.
26653 \begin_inset space \thinspace{}
26654 \end_inset
26655
26656 e.
26657 \begin_inset space \space{}
26658 \end_inset
26659
26660 it is easy to plug in new filters
26661 \begin_inset Foot
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665
26666 \emph on
26667 Filters 
26668 \emph default
26669 are programs that read a given data stream and output a manipulated data
26670  stream.
26671  That way, a WEB file (consisting of literate code) can be turned into a
26672  file consisting only of C program code or \SpecialChar LaTeX
26673  code.
26674 \end_layout
26675
26676 \end_inset
26677
26678  and to perform special processing that you may need.
26679  
26680 \end_layout
26681
26682 \begin_layout Itemize
26683 There is a good selection of filters available already (the HTML is one
26684  of them).
26685 \end_layout
26686
26687 \begin_layout Itemize
26688 It is free.
26689 \end_layout
26690
26691 \begin_layout Standard
26692 The Noweb web page can be found at: 
26693 \end_layout
26694
26695 \begin_layout Quote
26696 Noweb home page 
26697 \begin_inset Flex URL
26698 status collapsed
26699
26700 \begin_layout Plain Layout
26701
26702 https://www.cs.tufts.edu/~nr/noweb/
26703 \end_layout
26704
26705 \end_inset
26706
26707
26708 \end_layout
26709
26710 \begin_layout Standard
26711 Starting from there you can reach many other interesting links and even
26712  some literate program examples.
26713 \end_layout
26714
26715 \begin_layout Subsection
26716 \SpecialChar LyX
26717  and Literate Programming with Noweb
26718 \end_layout
26719
26720 \begin_layout Standard
26721 The \SpecialChar LyX
26722  support for Literate Programming is provided by using the generic \SpecialChar LyX
26723
26724  converters mechanism.
26725  This support is provided in a 
26726 \begin_inset Quotes eld
26727 \end_inset
26728
26729 Noweb independent
26730 \begin_inset Quotes erd
26731 \end_inset
26732
26733  way, i.
26734 \begin_inset space \thinspace{}
26735 \end_inset
26736
26737 e.
26738 \begin_inset space \space{}
26739 \end_inset
26740
26741 you will be able to use this new \SpecialChar LyX
26742  feature with some other literate programming
26743  tool of your choice by just changing your \SpecialChar LyX
26744  preferences.
26745 \end_layout
26746
26747 \begin_layout Subsubsection
26748 Generating documents and code (weaving and tangling)
26749 \end_layout
26750
26751 \begin_layout Paragraph
26752 Using the noweb module
26753 \end_layout
26754
26755 \begin_layout Standard
26756 If you have installed Noweb and \SpecialChar LyX
26757  successfully, whenever you open a new document,
26758  after you have chosen its document class, use the 
26759 \family sans
26760 Document\SpecialChar menuseparator
26761 Settings
26762 \family default
26763  menu to add the 
26764 \begin_inset Quotes eld
26765 \end_inset
26766
26767 noweb
26768 \begin_inset Quotes erd
26769 \end_inset
26770
26771  module.
26772  If Noweb is correctly installed, when you click on the 
26773 \begin_inset Quotes eld
26774 \end_inset
26775
26776 Modules
26777 \begin_inset Quotes erd
26778 \end_inset
26779
26780  link, you will see the 
26781 \begin_inset Quotes eld
26782 \end_inset
26783
26784 noweb
26785 \begin_inset Quotes erd
26786 \end_inset
26787
26788  module in the available list and you can add it to your document.
26789 \end_layout
26790
26791 \begin_layout Paragraph
26792 Typing code in
26793 \end_layout
26794
26795 \begin_layout Standard
26796 \SpecialChar LyX
26797  enables you to write code with a custom inset named 
26798 \begin_inset Flex Noun
26799 status collapsed
26800
26801 \begin_layout Plain Layout
26802 Chunk
26803 \end_layout
26804
26805 \end_inset
26806
26807 .
26808  Noweb delimits chunks like this:
26809 \end_layout
26810
26811 \begin_layout LyX-Code
26812 <<My code>>=
26813 \end_layout
26814
26815 \begin_layout LyX-Code
26816   code
26817 \end_layout
26818
26819 \begin_layout LyX-Code
26820   more code
26821 \end_layout
26822
26823 \begin_layout LyX-Code
26824   even more code
26825 \end_layout
26826
26827 \begin_layout LyX-Code
26828   @
26829 \end_layout
26830
26831 \begin_layout Standard
26832 The problem is that whatever is written in between the << and the 
26833 \family typewriter
26834 @
26835 \family default
26836  must be taken literally, i.
26837 \begin_inset space \thinspace{}
26838 \end_inset
26839
26840 e.
26841 \begin_inset space \space{}
26842 \end_inset
26843
26844 \SpecialChar LyX
26845  should be prevented from making any special interpretation of what has
26846  been written.
26847  This is also handled by 
26848 \begin_inset Flex Noun
26849 status collapsed
26850
26851 \begin_layout Plain Layout
26852 Chunk
26853 \end_layout
26854
26855 \end_inset
26856
26857 , that works like a normal text inset but has a free spacing capability.
26858 \end_layout
26859
26860 \begin_layout Standard
26861 As a special note, you can also use the 
26862 \begin_inset Quotes eld
26863 \end_inset
26864
26865 %def
26866 \begin_inset Quotes erd
26867 \end_inset
26868
26869  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
26870 rence:
26871 \end_layout
26872
26873 \begin_layout LyX-Code
26874 <<My chunk>>=
26875 \end_layout
26876
26877 \begin_layout LyX-Code
26878 def some_function(args):
26879 \end_layout
26880
26881 \begin_layout LyX-Code
26882    "This is the doc string for this function."
26883 \end_layout
26884
26885 \begin_layout LyX-Code
26886    print "My args: ", args
26887 \end_layout
26888
26889 \begin_layout LyX-Code
26890 @ %def some_function
26891 \end_layout
26892
26893 \begin_layout Standard
26894 For an example of this usage and the resulting cross-reference output, look
26895  at the Literate python program in 
26896 \emph on
26897 LIBDIR/examples/listerrors.lyx
26898 \emph default
26899  which should make this all clear.
26900 \end_layout
26901
26902 \begin_layout Paragraph
26903 Generating the documentation
26904 \end_layout
26905
26906 \begin_layout Standard
26907 At this point you already have a new document file with a proper document
26908  class, and with some code and text on it.
26909  How do I print it? The answer is simple, you select 
26910 \family sans
26911 View\SpecialChar menuseparator
26912 DVI,
26913 \family default
26914  etc.
26915  Just like you would do for a plain document.
26916  No special procedure is required.
26917 \end_layout
26918
26919 \begin_layout Standard
26920 To help orientate you, I will now explain what happens inside \SpecialChar LyX
26921 :
26922 \end_layout
26923
26924 \begin_layout Enumerate
26925 When the 
26926 \family sans
26927 Update\SpecialChar menuseparator
26928 DVI
26929 \family default
26930  menu option is chosen, a \SpecialChar LaTeX
26931  file is generated.
26932  
26933 \end_layout
26934
26935 \begin_deeper
26936 \begin_layout Standard
26937 If the document is of any literate class the generated file will be named
26938  with an extension name defined by the 
26939 \begin_inset Quotes eld
26940 \end_inset
26941
26942 literate
26943 \begin_inset Quotes erd
26944 \end_inset
26945
26946  format (defined in the Preferences panel), otherwise the file will have
26947  the usual 
26948 \family typewriter
26949 .tex
26950 \family default
26951  extension.
26952 \end_layout
26953
26954 \end_deeper
26955 \begin_layout Enumerate
26956 Note that the only difference so far is in the name of the file, no special
26957  processing is required by \SpecialChar LyX
26958 .
26959  Given that you formatted the code using the 
26960 \begin_inset Flex Noun
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964 Chunk
26965 \end_layout
26966
26967 \end_inset
26968
26969  inset that, by itself, takes care of the business.
26970 \end_layout
26971
26972 \begin_layout Enumerate
26973 If the document is of any literate class \SpecialChar LyX
26974  will then use the internal \SpecialChar LyX
26975  to
26976  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
26977  converter
26978 \begin_inset Foot
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982 The converters are defined in the 
26983 \family sans
26984 Tools\SpecialChar menuseparator
26985 Preferences
26986 \family default
26987  panel, under the 
26988 \begin_inset Quotes eld
26989 \end_inset
26990
26991 Conversion
26992 \begin_inset Quotes erd
26993 \end_inset
26994
26995  tab.
26996  See section 
26997 \emph on
26998 Converters
26999 \emph default
27000  of the 
27001 \emph on
27002 Customization
27003 \emph default
27004  manual for general information about converters.
27005 \end_layout
27006
27007 \end_inset
27008
27009  to generate the \SpecialChar LaTeX
27010  file.
27011 \end_layout
27012
27013 \begin_deeper
27014 \begin_layout Standard
27015 Otherwise it will just skip this step.
27016 \end_layout
27017
27018 \end_deeper
27019 \begin_layout Enumerate
27020 Finally, \SpecialChar LaTeX
27021  is invoked and the regular post processing continues as in a plain
27022  document.
27023 \end_layout
27024
27025 \begin_layout Standard
27026 Independence from a particular 
27027 \begin_inset Quotes eld
27028 \end_inset
27029
27030 literate tool
27031 \begin_inset Quotes erd
27032 \end_inset
27033
27034  is easily achieved by changing the commands that are run by the various
27035  converters.
27036 \end_layout
27037
27038 \begin_layout Paragraph
27039 Generating the code
27040 \end_layout
27041
27042 \begin_layout Standard
27043 When the build menu option is chosen or the corresponding button in the
27044  toolbar is pressed, a \SpecialChar LaTeX
27045  file is generated just like step 1 above.
27046  Next, \SpecialChar LyX
27047  invokes the 
27048 \family typewriter
27049 Noweb->Program
27050 \family default
27051  converter.
27052  This converter needs to be defined by the user and is not installed by
27053  default, though the Program format is.
27054  This converter (like any other converter) will have two parts:
27055 \end_layout
27056
27057 \begin_layout Enumerate
27058 The converter program itself.
27059  This program performs the conversion from the one format to the other (in
27060  this case, from the Noweb format to the Program pseudo-format).
27061 \end_layout
27062
27063 \begin_layout Enumerate
27064 The error log parser.
27065  This is a program whose sole purpose is to rewrite error messages in a
27066  format that \SpecialChar LyX
27067  understands.
27068  This makes it possible for \SpecialChar LyX
27069  to place error boxes in the right places in
27070  the file buffer.
27071 \end_layout
27072
27073 \begin_layout Standard
27074 The first part, the 
27075 \begin_inset Quotes eld
27076 \end_inset
27077
27078 Converter
27079 \begin_inset Quotes erd
27080 \end_inset
27081
27082  setting, should be set to
27083 \end_layout
27084
27085 \begin_layout LyX-Code
27086
27087 \family typewriter
27088 build-script $$i
27089 \family default
27090  $$r
27091 \end_layout
27092
27093 \begin_layout Standard
27094 This basically means that \SpecialChar LyX
27095  will call 
27096 \begin_inset Quotes eld
27097 \end_inset
27098
27099 build-script
27100 \begin_inset Quotes erd
27101 \end_inset
27102
27103  (a program or script) with the name of the Noweb file (normally a file
27104  in the \SpecialChar LyX
27105  temp directory) and the directory path of the original \SpecialChar LyX
27106  file.
27107  
27108 \end_layout
27109
27110 \begin_layout Standard
27111 This is an implementation of 
27112 \begin_inset Quotes eld
27113 \end_inset
27114
27115 build-script
27116 \begin_inset Quotes erd
27117 \end_inset
27118
27119  that you can place in a directory on your path:
27120 \end_layout
27121
27122 \begin_layout LyX-Code
27123
27124 \family sans
27125 #!/bin/sh
27126 \end_layout
27127
27128 \begin_layout LyX-Code
27129
27130 \family sans
27131 #
27132 \end_layout
27133
27134 \begin_layout LyX-Code
27135
27136 \family sans
27137 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
27138 \end_layout
27139
27140 \begin_layout Standard
27141 The next part of the converter setting is the 
27142 \begin_inset Quotes eld
27143 \end_inset
27144
27145 Flags
27146 \begin_inset Quotes erd
27147 \end_inset
27148
27149  which is to be set to
27150 \end_layout
27151
27152 \begin_layout LyX-Code
27153
27154 \family typewriter
27155 parselog=$$s/scripts/listerrors
27156 \end_layout
27157
27158 \begin_layout Standard
27159 This will run any errors that are generated by the 
27160 \begin_inset Quotes eld
27161 \end_inset
27162
27163 build-script
27164 \begin_inset Quotes erd
27165 \end_inset
27166
27167  process through the 
27168 \begin_inset Quotes eld
27169 \end_inset
27170
27171 listerrors
27172 \begin_inset Quotes erd
27173 \end_inset
27174
27175  program.
27176 \end_layout
27177
27178 \begin_layout Standard
27179 The build will normally take place in \SpecialChar LyX
27180 's temporary directory, so the files
27181  produced by the conversion will be in that directory.
27182  \SpecialChar LyX
27183  will copy out what it regards as the `main' file, but the 
27184 \family typewriter
27185 Noweb->Program
27186 \family default
27187  conversion may produce several files, and so most of these would then be
27188  deleted when \SpecialChar LyX
27189  was closed.
27190  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
27191  the build-script chunk can place the generated files in that location.
27192 \end_layout
27193
27194 \begin_layout Paragraph
27195 Build instructions in the document
27196 \end_layout
27197
27198 \begin_layout Standard
27199 The last piece of the integration between \SpecialChar LyX
27200  and noweb is the 
27201 \begin_inset Quotes eld
27202 \end_inset
27203
27204 build-script
27205 \begin_inset Quotes erd
27206 \end_inset
27207
27208  chunk.
27209  Generally, the instructions for building your program should be embedded
27210  in a chunk of its own.
27211  The noweb-specific 
27212 \begin_inset Quotes eld
27213 \end_inset
27214
27215 build-script
27216 \begin_inset Quotes erd
27217 \end_inset
27218
27219  above uses the notangle command to look for this chunk (called 
27220 \begin_inset Quotes eld
27221 \end_inset
27222
27223 build-script
27224 \begin_inset Quotes erd
27225 \end_inset
27226
27227 ) and runs its contents through 
27228 \begin_inset Quotes eld
27229 \end_inset
27230
27231 sh
27232 \begin_inset Quotes erd
27233 \end_inset
27234
27235 .
27236 \end_layout
27237
27238 \begin_layout Standard
27239 Typically, such a chunk would look something like this:
27240 \end_layout
27241
27242 \begin_layout LyX-Code
27243 <<build-script>>=
27244 \end_layout
27245
27246 \begin_layout LyX-Code
27247 #!/bin/sh
27248 \begin_inset Newline newline
27249 \end_inset
27250
27251 if [ -z "${NOWEB_SOURCE}" ]
27252 \begin_inset Newline newline
27253 \end_inset
27254
27255 then
27256 \end_layout
27257
27258 \begin_layout LyX-Code
27259 NOWEB_SOURCE=myfile.nw
27260 \begin_inset Newline newline
27261 \end_inset
27262
27263 fi
27264 \begin_inset Newline newline
27265 \end_inset
27266
27267 [...
27268  code to extract files ...
27269  use NOWEB_OUTPUT_DIR here ...]
27270 \begin_inset Newline newline
27271 \end_inset
27272
27273 [...
27274  code to compile files ...]
27275 \begin_inset Newline newline
27276 \end_inset
27277
27278 @
27279 \end_layout
27280
27281 \begin_layout Standard
27282 Look in 
27283 \emph on
27284 LIBDIR/examples/listerrors.lyx
27285 \emph default
27286  or in 
27287 \emph on
27288 LIBDIR/examples/Literate.lyx
27289 \emph default
27290  which implement two versions of the 
27291 \begin_inset Quotes eld
27292 \end_inset
27293
27294 listerrors
27295 \begin_inset Quotes erd
27296 \end_inset
27297
27298  program for some illustrations of how all of these pieces go together or
27299  in 
27300 \emph on
27301 LIBDIR/examples/noweb2lyx.lyx.
27302
27303 \emph default
27304  Interestingly, these three files show off the language-indepence of the
27305  \SpecialChar LyX
27306  literate programming support since they are written in Python, C and Perl
27307  respectively.
27308 \end_layout
27309
27310 \begin_layout Subsubsection
27311 Configuring \SpecialChar LyX
27312
27313 \end_layout
27314
27315 \begin_layout Standard
27316 All the Literate Programming support is configured by the 
27317 \family sans
27318 Tools\SpecialChar menuseparator
27319 Preferences
27320 \family default
27321  panel in the 
27322 \begin_inset Quotes eld
27323 \end_inset
27324
27325 File Handling
27326 \begin_inset Quotes erd
27327 \end_inset
27328
27329  tab.
27330  The important parts are:
27331 \end_layout
27332
27333 \begin_layout Description
27334 the
27335 \begin_inset space ~
27336 \end_inset
27337
27338
27339 \begin_inset Quotes eld
27340 \end_inset
27341
27342 NoWeb
27343 \begin_inset Quotes erd
27344 \end_inset
27345
27346
27347 \begin_inset space ~
27348 \end_inset
27349
27350 format Set up via the File Formats tab, this is where the Noweb-specific
27351  pieces are set up.
27352  The 
27353 \family sans
27354 GUI Name
27355 \family default
27356  is set to 
27357 \family typewriter
27358 NoWeb
27359 \family default
27360 , the file extension is set to 
27361 \family typewriter
27362 .nw
27363 \family default
27364 .
27365  This tells \SpecialChar LyX
27366  to create a file with a 
27367 \family typewriter
27368 .nw
27369 \family default
27370  extension in the first step of the conversion process.
27371 \end_layout
27372
27373 \begin_layout Description
27374 the
27375 \begin_inset space ~
27376 \end_inset
27377
27378
27379 \family sans
27380 Program
27381 \family default
27382
27383 \begin_inset space ~
27384 \end_inset
27385
27386 format This is an empty format whose sole purpose is to be the endpoint
27387  of a conversion (which then allows us to set up a converter for it).
27388 \end_layout
27389
27390 \begin_layout Description
27391
27392 \family sans
27393 NoWeb
27394 \family default
27395 ->
27396 \family sans
27397 \SpecialChar LaTeX
27398
27399 \family default
27400  This converter performs the 
27401 \begin_inset Quotes eld
27402 \end_inset
27403
27404 weaving
27405 \begin_inset Quotes erd
27406 \end_inset
27407
27408  of the literate document.
27409  For Noweb, it is set to 
27410 \begin_inset Quotes eld
27411 \end_inset
27412
27413
27414 \family typewriter
27415 noweave -delay -index $$i > $$o
27416 \family default
27417
27418 \begin_inset Quotes erd
27419 \end_inset
27420
27421
27422 \end_layout
27423
27424 \begin_layout Description
27425
27426 \family sans
27427 NoWeb
27428 \family default
27429 ->
27430 \family sans
27431 Program
27432 \family default
27433  This performs the 
27434 \begin_inset Quotes eld
27435 \end_inset
27436
27437 tangling step
27438 \begin_inset Quotes erd
27439 \end_inset
27440
27441 .
27442  As stated above, the Converter is set to 
27443 \begin_inset Quotes eld
27444 \end_inset
27445
27446
27447 \family typewriter
27448 build-script $$i
27449 \family default
27450  $$r
27451 \begin_inset Quotes erd
27452 \end_inset
27453
27454 , with Flags set to
27455 \begin_inset Newline newline
27456 \end_inset
27457
27458
27459 \begin_inset Quotes eld
27460 \end_inset
27461
27462
27463 \family typewriter
27464 parselog=$$s/scripts/listerrors
27465 \family default
27466
27467 \begin_inset Quotes erd
27468 \end_inset
27469
27470 .
27471 \end_layout
27472
27473 \begin_layout Subsubsection
27474 Debug extensions
27475 \end_layout
27476
27477 \begin_layout Standard
27478 There is also a new function implemented in the \SpecialChar LyX
27479  server, the 
27480 \begin_inset Quotes eld
27481 \end_inset
27482
27483 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
27484  
27485 \end_layout
27486
27487 \begin_layout Standard
27488 When debugging code with ddd/gdb, it is possible to invoke a text editor
27489  at the current execution position with a single key stroke.
27490  The default ddd configuration for that is shift-ctrl-V.
27491  It happens that you can define the editor command line invocation in ddd
27492  by accessing the 
27493 \family sans
27494 Edit\SpecialChar menuseparator
27495 Preferences\SpecialChar menuseparator
27496 Helpers
27497 \family default
27498  dialog and changing the "Edit Sources" entry.
27499 \end_layout
27500
27501 \begin_layout Standard
27502 I take advantage of the newly created \SpecialChar LyX
27503  server function and this ddd feature,
27504  and set 
27505 \begin_inset Quotes eld
27506 \end_inset
27507
27508 Edit Sources
27509 \begin_inset Quotes erd
27510 \end_inset
27511
27512  to:
27513 \end_layout
27514
27515 \begin_layout LyX-Code
27516 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
27517 \end_layout
27518
27519 \begin_layout Standard
27520 With this, whenever you are using ddd and find a point in the program that
27521  you want to edit, you just press shift-ctrl-V (in the ddd window), and
27522  ddd will forward this information to \SpecialChar LyX
27523  through the \SpecialChar LyX
27524  server and then the
27525  \SpecialChar LyX
27526  window will show the same file with the cursor at the same position ddd
27527  was pointing to.
27528  No more guessing or long scrolling to locate a point in the program back
27529  from debugging !
27530 \end_layout
27531
27532 \begin_layout Standard
27533 Note however that you must enable the \SpecialChar LyX
27534  server to get this feature working
27535  (it is disabled by default).
27536  Sec.
27537 \begin_inset space ~
27538 \end_inset
27539
27540
27541 \begin_inset CommandInset ref
27542 LatexCommand ref
27543 reference "sec:Starting-the-Server"
27544
27545 \end_inset
27546
27547  explains how to do that.
27548 \end_layout
27549
27550 \begin_layout Subsubsection
27551 Toolbar extensions
27552 \end_layout
27553
27554 \begin_layout Standard
27555 There are six new buttons that can be added to your \SpecialChar LyX
27556  toolbar.
27557  Four of these buttons are short cuts to layout styles: 
27558 \family sans
27559 Standard
27560 \family default
27561
27562 \family sans
27563 Section
27564 \family default
27565
27566 \family sans
27567 \SpecialChar LaTeX
27568
27569 \family default
27570 , and 
27571 \family sans
27572 \SpecialChar LyX
27573 -Code
27574 \family default
27575 , one for the custom inset 
27576 \family sans
27577 Chunk
27578 \family default
27579 .
27580  The last one is a short cut to the 
27581 \begin_inset Quotes eld
27582 \end_inset
27583
27584 Build Program
27585 \begin_inset Quotes erd
27586 \end_inset
27587
27588  File menu entry.
27589  
27590 \end_layout
27591
27592 \begin_layout Standard
27593 \SpecialChar LyX
27594  has a range of buttons that are available for tool bar customization.
27595  In my toolbar I like to combine the six short cuts above with two more:
27596  One for 
27597 \family sans
27598 Document
27599 \family default
27600 \SpecialChar menuseparator
27601
27602 \family sans
27603 Update
27604 \family default
27605 \SpecialChar menuseparator
27606
27607 \family sans
27608 DVI
27609 \family default
27610  and the other for 
27611 \family sans
27612 Document\SpecialChar menuseparator
27613 View\SpecialChar menuseparator
27614 DVI
27615 \family default
27616  File menu entries.
27617  Here is how it looks like:
27618 \end_layout
27619
27620 \begin_layout LyX-Code
27621 Toolbar
27622 \end_layout
27623
27624 \begin_layout LyX-Code
27625   Layouts
27626 \end_layout
27627
27628 \begin_layout LyX-Code
27629   Icon "layout Standard"
27630 \end_layout
27631
27632 \begin_layout LyX-Code
27633   Icon "layout Section"
27634 \end_layout
27635
27636 \begin_layout LyX-Code
27637   Icon "layout \SpecialChar LaTeX
27638 "
27639 \end_layout
27640
27641 \begin_layout LyX-Code
27642   Icon "layout \SpecialChar LyX
27643 -Code"
27644 \end_layout
27645
27646 \begin_layout LyX-Code
27647   Icon "flex.insert Chunk"
27648 \end_layout
27649
27650 \begin_layout LyX-Code
27651   Separator
27652 \end_layout
27653
27654 \begin_layout LyX-Code
27655   Icon "buffer-view"
27656 \end_layout
27657
27658 \begin_layout LyX-Code
27659   Icon "buffer-typeset"
27660 \end_layout
27661
27662 \begin_layout LyX-Code
27663   Icon "build-program"
27664 \end_layout
27665
27666 \begin_layout LyX-Code
27667   Separator
27668 \end_layout
27669
27670 \begin_layout LyX-Code
27671 .
27672 \end_layout
27673
27674 \begin_layout LyX-Code
27675 .
27676 \end_layout
27677
27678 \begin_layout LyX-Code
27679 .
27680 \end_layout
27681
27682 \begin_layout LyX-Code
27683 End
27684 \end_layout
27685
27686 \begin_layout Subsubsection
27687 Colors customization
27688 \end_layout
27689
27690 \begin_layout Standard
27691 There are a number of colors in \SpecialChar LyX
27692  that can be customized in 
27693 \family sans
27694 Preferences
27695 \family default
27696 .
27697  One of the things that bothers people is the \SpecialChar LaTeX
27698  font color.
27699  The default color is red, since the chunks uses \SpecialChar LaTeX
27700  font, and there is a lot
27701  of chunks in literate documents, you may get tired of seeing everything
27702  in red.
27703  You can change it by going to the tabs 
27704 \family sans
27705 Look&Feel
27706 \family default
27707
27708 \family sans
27709 Colors.
27710 \end_layout
27711
27712 \begin_layout Standard
27713 The next thing is the visible presence of the newline character in the screen.
27714  You can choose the color of this particular character and make it blend
27715  in the background.
27716  I recommend you choosing a color that is close to the background but not
27717  equal, that way you still can see it is there, but it is not bothering
27718  you anymore.
27719 \end_layout
27720
27721 \begin_layout Subsection
27722 \SpecialChar LyX
27723  and knitr/Sweave
27724 \end_layout
27725
27726 \begin_layout Standard
27727 Support for 
27728 \family sans
27729 knitr
27730 \family default
27731  and 
27732 \family sans
27733 Sweave
27734 \family default
27735  is documented in the 
27736 \emph on
27737 knitr.lyx
27738 \emph default
27739  example file and in the Sweave manual (menu 
27740 \family sans
27741 Help\SpecialChar menuseparator
27742 Specific Manuals
27743 \family default
27744 ).
27745 \end_layout
27746
27747 \begin_layout Chapter
27748 Special features
27749 \end_layout
27750
27751 \begin_layout Standard
27752 You can do everything with \SpecialChar LyX
27753  that you can do with \SpecialChar LaTeX
27754 .
27755  However, \SpecialChar LyX
27756  cannot support every \SpecialChar LaTeX
27757  feature directly.
27758  But you can always use \SpecialChar TeX
27759  Code.
27760  This chapter shows you some more special things you might want to use.
27761  For other special things you can do with figures, tables, floats, boxes
27762  and notes, have a look at the 
27763 \emph on
27764 Embedded
27765 \begin_inset space ~
27766 \end_inset
27767
27768 Objects
27769 \emph default
27770  manual.
27771 \end_layout
27772
27773 \begin_layout Section
27774 Non-standard Paragraph Shapes
27775 \end_layout
27776
27777 \begin_layout Standard
27778 \noindent
27779 \SpecialChar LaTeX
27780  as well as any other text processor uses by default rectangular paragraphs.
27781  For special cases like for example posters, invitation cards or poems you
27782  can modify the paragraph shape to one of your choice.
27783  This can be done by using the \SpecialChar LaTeX
27784 -package 
27785 \begin_inset Flex Code
27786 status collapsed
27787
27788 \begin_layout Plain Layout
27789 shapepar
27790 \end_layout
27791
27792 \end_inset
27793
27794  which is loaded by using in the document settings the module 
27795 \family sans
27796 Custom paragraph shapes
27797 \family default
27798 .
27799 \end_layout
27800
27801 \begin_layout Subsection
27802 Predefined shapes
27803 \end_layout
27804
27805 \begin_layout Standard
27806
27807 \series bold
27808 shapepar
27809 \series default
27810  provides the following shapes:
27811 \end_layout
27812
27813 \begin_layout Standard
27814 \begin_inset Tabular
27815 <lyxtabular version="3" rows="13" columns="3">
27816 <features booktabs="true" islongtable="true" longtabularalignment="center">
27817 <column alignment="left" valignment="middle" width="16col%">
27818 <column alignment="left" valignment="middle" width="40col%">
27819 <column alignment="left" valignment="middle" width="35col%">
27820 <row endhead="true">
27821 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27822 \begin_inset Text
27823
27824 \begin_layout Plain Layout
27825
27826 \series bold
27827 \size small
27828 Name
27829 \end_layout
27830
27831 \end_inset
27832 </cell>
27833 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27834 \begin_inset Text
27835
27836 \begin_layout Plain Layout
27837
27838 \series bold
27839 \size small
27840 Description
27841 \end_layout
27842
27843 \end_inset
27844 </cell>
27845 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27846 \begin_inset Text
27847
27848 \begin_layout Plain Layout
27849
27850 \series bold
27851 \size small
27852 Annotation
27853 \end_layout
27854
27855 \end_inset
27856 </cell>
27857 </row>
27858 <row interlinespace="default">
27859 <cell alignment="left" valignment="top" usebox="none">
27860 \begin_inset Text
27861
27862 \begin_layout Plain Layout
27863
27864 \size small
27865 CDlabel
27866 \end_layout
27867
27868 \end_inset
27869 </cell>
27870 <cell alignment="left" valignment="top" usebox="none">
27871 \begin_inset Text
27872
27873 \begin_layout Plain Layout
27874
27875 \size small
27876 Circle with circular hole (in the size of a CD/DVD)
27877 \end_layout
27878
27879 \end_inset
27880 </cell>
27881 <cell alignment="left" valignment="top" usebox="none">
27882 \begin_inset Text
27883
27884 \begin_layout Plain Layout
27885
27886 \size small
27887 Cannot be scaled, take care there is not too much text
27888 \end_layout
27889
27890 \end_inset
27891 </cell>
27892 </row>
27893 <row interlinespace="default">
27894 <cell alignment="left" valignment="top" usebox="none">
27895 \begin_inset Text
27896
27897 \begin_layout Plain Layout
27898
27899 \size small
27900 Circle
27901 \end_layout
27902
27903 \end_inset
27904 </cell>
27905 <cell alignment="left" valignment="top" usebox="none">
27906 \begin_inset Text
27907
27908 \begin_layout Plain Layout
27909
27910 \size small
27911 Circle
27912 \end_layout
27913
27914 \end_inset
27915 </cell>
27916 <cell alignment="left" valignment="top" usebox="none">
27917 \begin_inset Text
27918
27919 \begin_layout Plain Layout
27920
27921 \size small
27922 Fragile, calculation might fail
27923 \end_layout
27924
27925 \end_inset
27926 </cell>
27927 </row>
27928 <row interlinespace="default">
27929 <cell alignment="left" valignment="top" usebox="none">
27930 \begin_inset Text
27931
27932 \begin_layout Plain Layout
27933
27934 \size small
27935 Diamond
27936 \end_layout
27937
27938 \end_inset
27939 </cell>
27940 <cell alignment="left" valignment="top" usebox="none">
27941 \begin_inset Text
27942
27943 \begin_layout Plain Layout
27944
27945 \size small
27946 Rhomboid (symbolizing a 
27947 \begin_inset Quotes eld
27948 \end_inset
27949
27950 diamond
27951 \begin_inset Quotes erd
27952 \end_inset
27953
27954 )
27955 \end_layout
27956
27957 \end_inset
27958 </cell>
27959 <cell alignment="left" valignment="top" usebox="none">
27960 \begin_inset Text
27961
27962 \begin_layout Plain Layout
27963
27964 \size small
27965 -
27966 \end_layout
27967
27968 \end_inset
27969 </cell>
27970 </row>
27971 <row interlinespace="default">
27972 <cell alignment="left" valignment="top" usebox="none">
27973 \begin_inset Text
27974
27975 \begin_layout Plain Layout
27976
27977 \size small
27978 Heart
27979 \end_layout
27980
27981 \end_inset
27982 </cell>
27983 <cell alignment="left" valignment="top" usebox="none">
27984 \begin_inset Text
27985
27986 \begin_layout Plain Layout
27987
27988 \size small
27989 Heart-like shape
27990 \end_layout
27991
27992 \end_inset
27993 </cell>
27994 <cell alignment="left" valignment="top" usebox="none">
27995 \begin_inset Text
27996
27997 \begin_layout Plain Layout
27998
27999 \size small
28000 -
28001 \end_layout
28002
28003 \end_inset
28004 </cell>
28005 </row>
28006 <row interlinespace="default">
28007 <cell alignment="left" valignment="top" usebox="none">
28008 \begin_inset Text
28009
28010 \begin_layout Plain Layout
28011
28012 \size small
28013 Hexagon
28014 \end_layout
28015
28016 \end_inset
28017 </cell>
28018 <cell alignment="left" valignment="top" usebox="none">
28019 \begin_inset Text
28020
28021 \begin_layout Plain Layout
28022
28023 \size small
28024 Hexagon
28025 \end_layout
28026
28027 \end_inset
28028 </cell>
28029 <cell alignment="left" valignment="top" usebox="none">
28030 \begin_inset Text
28031
28032 \begin_layout Plain Layout
28033
28034 \size small
28035 -
28036 \end_layout
28037
28038 \end_inset
28039 </cell>
28040 </row>
28041 <row interlinespace="default">
28042 <cell alignment="left" valignment="top" usebox="none">
28043 \begin_inset Text
28044
28045 \begin_layout Plain Layout
28046
28047 \size small
28048 Nut
28049 \end_layout
28050
28051 \end_inset
28052 </cell>
28053 <cell alignment="left" valignment="top" usebox="none">
28054 \begin_inset Text
28055
28056 \begin_layout Plain Layout
28057
28058 \size small
28059 Nut for bolt (hexagon with circular hole)
28060 \end_layout
28061
28062 \end_inset
28063 </cell>
28064 <cell alignment="left" valignment="top" usebox="none">
28065 \begin_inset Text
28066
28067 \begin_layout Plain Layout
28068
28069 \size small
28070 -
28071 \end_layout
28072
28073 \end_inset
28074 </cell>
28075 </row>
28076 <row interlinespace="default">
28077 <cell alignment="left" valignment="top" usebox="none">
28078 \begin_inset Text
28079
28080 \begin_layout Plain Layout
28081
28082 \size small
28083 Square
28084 \end_layout
28085
28086 \end_inset
28087 </cell>
28088 <cell alignment="left" valignment="top" usebox="none">
28089 \begin_inset Text
28090
28091 \begin_layout Plain Layout
28092
28093 \size small
28094 Square
28095 \end_layout
28096
28097 \end_inset
28098 </cell>
28099 <cell alignment="left" valignment="top" usebox="none">
28100 \begin_inset Text
28101
28102 \begin_layout Plain Layout
28103
28104 \size small
28105 -
28106 \end_layout
28107
28108 \end_inset
28109 </cell>
28110 </row>
28111 <row interlinespace="default">
28112 <cell alignment="left" valignment="top" usebox="none">
28113 \begin_inset Text
28114
28115 \begin_layout Plain Layout
28116
28117 \size small
28118 Star
28119 \end_layout
28120
28121 \end_inset
28122 </cell>
28123 <cell alignment="left" valignment="top" usebox="none">
28124 \begin_inset Text
28125
28126 \begin_layout Plain Layout
28127
28128 \size small
28129 Five-point star
28130 \end_layout
28131
28132 \end_inset
28133 </cell>
28134 <cell alignment="left" valignment="top" usebox="none">
28135 \begin_inset Text
28136
28137 \begin_layout Plain Layout
28138
28139 \size small
28140 -
28141 \end_layout
28142
28143 \end_inset
28144 </cell>
28145 </row>
28146 <row interlinespace="default">
28147 <cell alignment="left" valignment="top" usebox="none">
28148 \begin_inset Text
28149
28150 \begin_layout Plain Layout
28151
28152 \size small
28153 Candle
28154 \end_layout
28155
28156 \end_inset
28157 </cell>
28158 <cell alignment="left" valignment="top" usebox="none">
28159 \begin_inset Text
28160
28161 \begin_layout Plain Layout
28162
28163 \size small
28164 Burning candle
28165 \end_layout
28166
28167 \end_inset
28168 </cell>
28169 <cell alignment="left" valignment="top" usebox="none">
28170 \begin_inset Text
28171
28172 \begin_layout Plain Layout
28173
28174 \size small
28175 -
28176 \end_layout
28177
28178 \end_inset
28179 </cell>
28180 </row>
28181 <row interlinespace="default">
28182 <cell alignment="left" valignment="top" usebox="none">
28183 \begin_inset Text
28184
28185 \begin_layout Plain Layout
28186
28187 \size small
28188 Drop down/up
28189 \end_layout
28190
28191 \end_inset
28192 </cell>
28193 <cell alignment="left" valignment="top" usebox="none">
28194 \begin_inset Text
28195
28196 \begin_layout Plain Layout
28197
28198 \size small
28199 Normal/reversed rain drop
28200 \end_layout
28201
28202 \end_inset
28203 </cell>
28204 <cell alignment="left" valignment="top" usebox="none">
28205 \begin_inset Text
28206
28207 \begin_layout Plain Layout
28208
28209 \size small
28210 Fragile, calculation might fail
28211 \end_layout
28212
28213 \end_inset
28214 </cell>
28215 </row>
28216 <row interlinespace="default">
28217 <cell alignment="left" valignment="top" usebox="none">
28218 \begin_inset Text
28219
28220 \begin_layout Plain Layout
28221
28222 \size small
28223 \SpecialChar TeX
28224
28225 \end_layout
28226
28227 \end_inset
28228 </cell>
28229 <cell alignment="left" valignment="top" usebox="none">
28230 \begin_inset Text
28231
28232 \begin_layout Plain Layout
28233
28234 \size small
28235 The \SpecialChar TeX
28236  logo
28237 \end_layout
28238
28239 \end_inset
28240 </cell>
28241 <cell alignment="left" valignment="top" usebox="none">
28242 \begin_inset Text
28243
28244 \begin_layout Plain Layout
28245
28246 \size small
28247 -
28248 \end_layout
28249
28250 \end_inset
28251 </cell>
28252 </row>
28253 <row interlinespace="default">
28254 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28255 \begin_inset Text
28256
28257 \begin_layout Plain Layout
28258
28259 \size small
28260 Triangle up/down/
28261 \begin_inset Newline newline
28262 \end_inset
28263
28264 left/right
28265 \end_layout
28266
28267 \end_inset
28268 </cell>
28269 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28270 \begin_inset Text
28271
28272 \begin_layout Plain Layout
28273
28274 \size small
28275 Triangles in different orientations
28276 \end_layout
28277
28278 \end_inset
28279 </cell>
28280 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28281 \begin_inset Text
28282
28283 \begin_layout Plain Layout
28284
28285 \size small
28286 -
28287 \end_layout
28288
28289 \end_inset
28290 </cell>
28291 </row>
28292 </lyxtabular>
28293
28294 \end_inset
28295
28296
28297 \end_layout
28298
28299 \begin_layout Standard
28300 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28301 's pull-down box
28302  for environments in the toolbar.
28303 \end_layout
28304
28305 \begin_layout Standard
28306 \begin_inset Newpage newpage
28307 \end_inset
28308
28309
28310 \end_layout
28311
28312 \begin_layout Standard
28313 Here is an example paragraph in the shape of a nut:
28314 \end_layout
28315
28316 \begin_layout Standard
28317 \begin_inset VSpace bigskip
28318 \end_inset
28319
28320
28321 \end_layout
28322
28323 \begin_layout Nut
28324
28325 \lang latin
28326 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28327  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28328  voluptua.
28329  At vero eos et accusam et justo duo dolores et ea rebum.
28330  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28331  sit amet.
28332  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28333  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28334  voluptua.
28335 \end_layout
28336
28337 \begin_layout Standard
28338 \begin_inset VSpace bigskip
28339 \end_inset
28340
28341
28342 \end_layout
28343
28344 \begin_layout Standard
28345 \begin_inset Note Greyedout
28346 status open
28347
28348 \begin_layout Plain Layout
28349
28350 \series bold
28351 Note
28352 \series default
28353
28354 \family sans
28355 shapepar
28356 \family default
28357  paragraphs cannot run over a page break.
28358 \end_layout
28359
28360 \end_inset
28361
28362
28363 \end_layout
28364
28365 \begin_layout Standard
28366 \begin_inset VSpace bigskip
28367 \end_inset
28368
28369
28370 \end_layout
28371
28372 \begin_layout Standard
28373 The package 
28374 \begin_inset Flex Code
28375 status collapsed
28376
28377 \begin_layout Plain Layout
28378 shapepar
28379 \end_layout
28380
28381 \end_inset
28382
28383  takes care that the shape will always be preserved, no matter how much
28384  text is in the paragraph.
28385  Therefore the paragraph size changes with the amount of contained text.
28386  This can lead to paragraph sizes exceeding the page margins.
28387  To demonstrate the size scaling, here is the same example paragraph but
28388  with twice as much text:
28389 \end_layout
28390
28391 \begin_layout Standard
28392 \begin_inset Newpage newpage
28393 \end_inset
28394
28395
28396 \end_layout
28397
28398 \begin_layout Nut
28399
28400 \lang latin
28401 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28402  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28403  voluptua.
28404  At vero eos et accusam et justo duo dolores et ea rebum.
28405  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28406  sit amet.
28407  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28408  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28409  voluptua.
28410  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28411  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28412  voluptua.
28413  At vero eos et accusam et justo duo dolores et ea rebum.
28414  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28415  sit amet.
28416  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28417  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28418  voluptua.
28419 \end_layout
28420
28421 \begin_layout Standard
28422 \begin_inset VSpace bigskip
28423 \end_inset
28424
28425
28426 \end_layout
28427
28428 \begin_layout Standard
28429 An exception is the shape 
28430 \family sans
28431 CDlabel
28432 \family default
28433 .
28434  It cannot be scaled because it must fit the size of a CD/DVD.
28435  Therefore the amount of text that fits into the shape is limited.
28436 \begin_inset Newline newline
28437 \end_inset
28438
28439 The 
28440 \family sans
28441 drop
28442 \family default
28443  shapes and the 
28444 \family sans
28445 circle
28446 \family default
28447  shape are fragile, meaning that the calculation of their size can fail,
28448  depending on the amount of text.
28449  You will then get the \SpecialChar LaTeX
28450  error 
28451 \begin_inset Quotes eld
28452 \end_inset
28453
28454 Arithmetic overflow
28455 \begin_inset Quotes erd
28456 \end_inset
28457
28458 .
28459  In this case one can try to remove or add some text; if nothing works one
28460  has to use another shape.
28461 \end_layout
28462
28463 \begin_layout Standard
28464 \begin_inset VSpace bigskip
28465 \end_inset
28466
28467
28468 \end_layout
28469
28470 \begin_layout Standard
28471 For shapes with tips you will maybe see that \SpecialChar LaTeX
28472 's hyphenation routine fails
28473  for text in the tips.
28474  Therefore it is often necessary to add hyphenation points 
28475 \family sans
28476 (
28477 \begin_inset Info
28478 type  "shortcut"
28479 arg   "specialchar-insert hyphenation"
28480 \end_inset
28481
28482
28483 \family default
28484 ) to the corresponding text parts.
28485 \end_layout
28486
28487 \begin_layout Standard
28488 \begin_inset VSpace bigskip
28489 \end_inset
28490
28491
28492 \end_layout
28493
28494 \begin_layout Standard
28495 Shapepar paragraphs are either always centered or placed on the page so
28496  that their left border touches the left page margin.
28497  You can therefore not use the paragraph dialog to align such paragraphs.
28498  A solution is to put the paragraph into a minipage or parbox and align
28499  the box.
28500  The problem is hereby to find the right width for the box.
28501  Because if it is too wide and you center the box, the paragraph is not
28502  centered too because it sticks at the left side of the box.
28503  So you might have to play a bit with the width until it fits.
28504  Here are two heart-shaped paragraphs, the first one is not aligned, the
28505  second one is right-aligned:
28506 \end_layout
28507
28508 \begin_layout Standard
28509 \begin_inset Newpage newpage
28510 \end_inset
28511
28512
28513 \end_layout
28514
28515 \begin_layout Heart
28516 \noindent
28517
28518 \lang latin
28519 Lo\SpecialChar softhyphen
28520 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28521  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28522  voluptua.
28523  At vero eos et accusam et justo duo dolores et ea rebum.
28524  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28525  sit amet.
28526 \end_layout
28527
28528 \begin_layout Standard
28529 \begin_inset VSpace bigskip
28530 \end_inset
28531
28532
28533 \end_layout
28534
28535 \begin_layout Standard
28536 \noindent
28537 \align right
28538 \begin_inset Box Frameless
28539 position "t"
28540 hor_pos "c"
28541 has_inner_box 1
28542 inner_pos "t"
28543 use_parbox 1
28544 use_makebox 0
28545 width "42col%"
28546 special "none"
28547 height "1in"
28548 height_special "totalheight"
28549 thickness "0.4pt"
28550 separation "3pt"
28551 shadowsize "4pt"
28552 framecolor "black"
28553 backgroundcolor "none"
28554 status open
28555
28556 \begin_layout Heart
28557 \noindent
28558
28559 \lang latin
28560 Lo\SpecialChar softhyphen
28561 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28562  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28563  voluptua.
28564  At vero eos et accusam et justo duo dolores et ea rebum.
28565  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28566  sit amet.
28567 \end_layout
28568
28569 \end_inset
28570
28571
28572 \end_layout
28573
28574 \begin_layout Subsection
28575 Custom shapes
28576 \end_layout
28577
28578 \begin_layout Standard
28579 You can define any shape you want.
28580  Doing this manually is a lot of work because every coordinate must be specified.
28581  But there is a way to let the computer calculate the coordinates:
28582 \end_layout
28583
28584 \begin_layout Enumerate
28585 Install the program 
28586 \begin_inset CommandInset href
28587 LatexCommand href
28588 name "Jpgfdraw"
28589 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28590 literal "false"
28591
28592 \end_inset
28593
28594 .
28595 \end_layout
28596
28597 \begin_layout Enumerate
28598 In 
28599 \family sans
28600 Jpgfdraw
28601 \family default
28602  go to the menu 
28603 \family sans
28604 TeX/LaTeX\SpecialChar menuseparator
28605 Settings\SpecialChar menuseparator
28606 Set Normal Size
28607 \family default
28608  and select the font size you are using in your document.
28609  For example this document uses the size 12
28610 \begin_inset space \thinspace{}
28611 \end_inset
28612
28613 pt.
28614 \end_layout
28615
28616 \begin_layout Enumerate
28617 Draw a shape.
28618 \end_layout
28619
28620 \begin_layout Enumerate
28621 Use the menu 
28622 \family sans
28623 TeX/LaTeX\SpecialChar menuseparator
28624 Shapepar
28625 \family default
28626  to export the shape to coordinates.
28627  In the appearing dialog use either the outline of your shape for the coordinate
28628 s or the path itself.
28629 \begin_inset Foot
28630 status collapsed
28631
28632 \begin_layout Plain Layout
28633 For more information see 
28634 \begin_inset CommandInset href
28635 LatexCommand href
28636 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28637 literal "false"
28638
28639 \end_inset
28640
28641
28642 \end_layout
28643
28644 \end_inset
28645
28646
28647 \end_layout
28648
28649 \begin_layout Standard
28650 The coordinates are written into a \SpecialChar TeX
28651  file.
28652  To use it for your \SpecialChar LyX
28653  document
28654 \end_layout
28655
28656 \begin_layout Enumerate
28657 Place the cursor before the first character of your paragraph (or into a
28658  new empty one).
28659 \end_layout
28660
28661 \begin_layout Enumerate
28662 Open in \SpecialChar LyX
28663  the menu 
28664 \family sans
28665 Insert\SpecialChar menuseparator
28666 File\SpecialChar menuseparator
28667 Child
28668 \begin_inset space ~
28669 \end_inset
28670
28671 Document
28672 \family default
28673 , select the file and use 
28674 \family sans
28675 Input
28676 \family default
28677  as 
28678 \family sans
28679 Include Type.
28680 \end_layout
28681
28682 \begin_layout Standard
28683 \begin_inset VSpace defskip
28684 \end_inset
28685
28686
28687 \end_layout
28688
28689 \begin_layout Standard
28690 \begin_inset Note Greyedout
28691 status open
28692
28693 \begin_layout Plain Layout
28694
28695 \series bold
28696 Note
28697 \series default
28698 : The changed shape only applies to the current paragraph; everything is
28699  reset to normal for the next paragraph.
28700  Therefore the shape definition file must be input into every paragraph
28701  with the desired shape.
28702 \end_layout
28703
28704 \end_inset
28705
28706
28707 \end_layout
28708
28709 \begin_layout Standard
28710 \begin_inset VSpace bigskip
28711 \end_inset
28712
28713
28714 \end_layout
28715
28716 \begin_layout Standard
28717 Here is an example:
28718 \end_layout
28719
28720 \begin_layout Standard
28721 \begin_inset VSpace bigskip
28722 \end_inset
28723
28724
28725 \end_layout
28726
28727 \begin_layout Standard
28728 \begin_inset CommandInset include
28729 LatexCommand input
28730 filename "SpecialParagraphShape.tex"
28731 literal "true"
28732
28733 \end_inset
28734
28735
28736 \lang latin
28737 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28738  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28739  voluptua.
28740  At vero eos et accusam et justo duo dolores et ea rebum.
28741  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28742  sit amet.
28743  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28744  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28745  voluptua.
28746 \end_layout
28747
28748 \begin_layout Standard
28749 \begin_inset VSpace bigskip
28750 \end_inset
28751
28752
28753 \end_layout
28754
28755 \begin_layout Standard
28756
28757 \series bold
28758 A tip:
28759 \series default
28760  to draw complexer shapes in 
28761 \family sans
28762 Jpgfdraw
28763 \family default
28764  you can draw the shape in a program of your choice and import the resulting
28765  image to 
28766 \family sans
28767 Jpgfdraw
28768 \family default
28769 .
28770  Then you only need to draw a line or spline along the outline of the image.
28771 \end_layout
28772
28773 \begin_layout Standard
28774 \begin_inset VSpace bigskip
28775 \end_inset
28776
28777
28778 \end_layout
28779
28780 \begin_layout Standard
28781 The module 
28782 \family sans
28783 Custom paragraph shapes
28784 \family default
28785  also provides the two commands 
28786 \family sans
28787 shapepar
28788 \family default
28789  and 
28790 \family sans
28791 Shapepar
28792 \family default
28793  which can be used to define custom shapes coordinate by coordinate.
28794 \begin_inset Foot
28795 status collapsed
28796
28797 \begin_layout Plain Layout
28798 These commands are internally used for all shapes described here.
28799 \end_layout
28800
28801 \end_inset
28802
28803  For information how these styles are used and about further customization
28804  possibilities, have a look at the 
28805 \begin_inset CommandInset href
28806 LatexCommand href
28807 name "documentation"
28808 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28809 literal "false"
28810
28811 \end_inset
28812
28813  of the package 
28814 \begin_inset Flex Code
28815 status collapsed
28816
28817 \begin_layout Plain Layout
28818 shapepar
28819 \end_layout
28820
28821 \end_inset
28822
28823 .
28824 \end_layout
28825
28826 \end_body
28827 \end_document